diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-08-04 21:41:33 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-08-05 09:31:21 +0200 |
commit | 90a11efecd0c87feff40a25504e1cf29332d7d08 (patch) | |
tree | 578268569d5806dab95082ca1c94d5e6e3403dc3 /lib/private/security | |
parent | 4efa7c09b135e1af5269f72a6f6a1803e5c1edd2 (diff) | |
download | nextcloud-server-90a11efecd0c87feff40a25504e1cf29332d7d08.tar.gz nextcloud-server-90a11efecd0c87feff40a25504e1cf29332d7d08.zip |
Remove "use" statement
Ref https://bugs.php.net/bug.php?id=66773
Diffstat (limited to 'lib/private/security')
-rw-r--r-- | lib/private/security/crypto.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/security/crypto.php b/lib/private/security/crypto.php index 5a7073e950f..9bae1d6992c 100644 --- a/lib/private/security/crypto.php +++ b/lib/private/security/crypto.php @@ -27,7 +27,6 @@ use phpseclib\Crypt\AES; use phpseclib\Crypt\Hash; use OCP\Security\ICrypto; use OCP\Security\ISecureRandom; -use OCP\Security\StringUtils; use OCP\IConfig; /** @@ -50,6 +49,10 @@ class Crypto implements ICrypto { /** @var ISecureRandom */ private $random; + /** + * @param IConfig $config + * @param ISecureRandom $random + */ function __construct(IConfig $config, ISecureRandom $random) { $this->cipher = new AES(); $this->config = $config; @@ -119,7 +122,7 @@ class Crypto implements ICrypto { $this->cipher->setIV($iv); - if(!StringUtils::equals($this->calculateHMAC($parts[0].$parts[1], $password), $hmac)) { + if(!\OCP\Security\StringUtils::equals($this->calculateHMAC($parts[0].$parts[1], $password), $hmac)) { throw new \Exception('HMAC does not match.'); } |