summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/tests/crypt.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_encryption/tests/crypt.php')
-rwxr-xr-xapps/files_encryption/tests/crypt.php42
1 files changed, 0 insertions, 42 deletions
diff --git a/apps/files_encryption/tests/crypt.php b/apps/files_encryption/tests/crypt.php
index 3674381b6d1..c28062a77e8 100755
--- a/apps/files_encryption/tests/crypt.php
+++ b/apps/files_encryption/tests/crypt.php
@@ -388,33 +388,6 @@ class Test_Encryption_Crypt extends \PHPUnit_Framework_TestCase {
/**
* @medium
- * test decryption using legacy blowfish method
- */
- function testLegacyDecryptShort() {
-
- $crypted = $this->legacyEncrypt($this->dataShort, $this->pass);
-
- $decrypted = Encryption\Crypt::legacyBlockDecrypt($crypted, $this->pass);
-
- $this->assertEquals($this->dataShort, $decrypted);
-
- }
-
- /**
- * @medium
- * test decryption using legacy blowfish method
- */
- function testLegacyDecryptLong() {
-
- $crypted = $this->legacyEncrypt($this->dataLong, $this->pass);
-
- $decrypted = Encryption\Crypt::legacyBlockDecrypt($crypted, $this->pass);
-
- $this->assertEquals($this->dataLong, $decrypted);
- }
-
- /**
- * @medium
*/
function testRenameFile() {
@@ -658,19 +631,4 @@ class Test_Encryption_Crypt extends \PHPUnit_Framework_TestCase {
$view->unlink($filename);
}
-
- /**
- * encryption using legacy blowfish method
- * @param string $data data to encrypt
- * @param string $passwd password
- * @return string
- */
- function legacyEncrypt($data, $passwd) {
-
- $bf = new Legacy_Crypt_Blowfish($passwd);
- $crypted = $bf->encrypt($data);
-
- return $crypted;
- }
-
}