diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-05-27 12:21:39 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-05-27 17:35:28 +0200 |
commit | df22a7c4954acb67c9365f9900bd7a3f70f13487 (patch) | |
tree | 7da644cb3478e26ca29e21b83964ae071e47836d /apps/files_encryption/tests | |
parent | 8b355788333f9078066b3f877c4e5c1c4001597c (diff) | |
download | nextcloud-server-df22a7c4954acb67c9365f9900bd7a3f70f13487.tar.gz nextcloud-server-df22a7c4954acb67c9365f9900bd7a3f70f13487.zip |
make legacyDecrypt() private als always call legacyBlockDecrypt() from other classes
Diffstat (limited to 'apps/files_encryption/tests')
-rwxr-xr-x | apps/files_encryption/tests/crypt.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_encryption/tests/crypt.php b/apps/files_encryption/tests/crypt.php index 74b4252a1d4..e9f155e2649 100755 --- a/apps/files_encryption/tests/crypt.php +++ b/apps/files_encryption/tests/crypt.php @@ -515,7 +515,7 @@ class Test_Encryption_Crypt extends \PHPUnit_Framework_TestCase { */ function testLegacyDecryptShort($crypted) { - $decrypted = Encryption\Crypt::legacyDecrypt($crypted, $this->pass); + $decrypted = Encryption\Crypt::legacyBlockDecrypt($crypted, $this->pass); $this->assertEquals($this->dataShort, $decrypted); @@ -543,7 +543,7 @@ class Test_Encryption_Crypt extends \PHPUnit_Framework_TestCase { */ function testLegacyDecryptLong($crypted) { - $decrypted = Encryption\Crypt::legacyDecrypt($crypted, $this->pass); + $decrypted = Encryption\Crypt::legacyBlockDecrypt($crypted, $this->pass); $this->assertEquals($this->dataLong, $decrypted); @@ -560,7 +560,7 @@ class Test_Encryption_Crypt extends \PHPUnit_Framework_TestCase { $encKey = Encryption\Crypt::legacyCreateKey($this->pass); // Decrypt key - $key = Encryption\Crypt::legacyDecrypt($encKey, $this->pass); + $key = Encryption\Crypt::legacyBlockDecrypt($encKey, $this->pass); $this->assertTrue(is_numeric($key)); |