diff options
author | Sam Tuke <samtuke@owncloud.com> | 2013-02-11 10:21:23 +0000 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2013-02-11 10:21:23 +0000 |
commit | 92f06243be62945b5ff5e7542e9984f7bb45d74b (patch) | |
tree | 2a5438297946a2e85ec1563d7fd480f78bc172e3 /apps/files_encryption/test | |
parent | b3e59ca1e31f162d7ac720d8729958f438b23a02 (diff) | |
download | nextcloud-server-92f06243be62945b5ff5e7542e9984f7bb45d74b.tar.gz nextcloud-server-92f06243be62945b5ff5e7542e9984f7bb45d74b.zip |
Implementing sharing support
New file-specific methods in lib/public/share
Changes to how keyfiles are stored
Diffstat (limited to 'apps/files_encryption/test')
-rwxr-xr-x | apps/files_encryption/test/crypt.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_encryption/test/crypt.php b/apps/files_encryption/test/crypt.php index aa87ec32821..48ad2ee0075 100755 --- a/apps/files_encryption/test/crypt.php +++ b/apps/files_encryption/test/crypt.php @@ -439,14 +439,14 @@ class Test_Crypt extends \PHPUnit_Framework_TestCase { $this->assertTrue( strlen( $pair1['privateKey'] ) > 1 ); - $crypted = Encryption\Crypt::multiKeyEncrypt( $this->dataUrl, array( $pair1['publicKey'] ) ); + $crypted = Encryption\Crypt::multiKeyEncrypt( $this->dataShort, array( $pair1['publicKey'] ) ); - $this->assertNotEquals( $this->dataUrl, $crypted['encrypted'] ); + $this->assertNotEquals( $this->dataShort, $crypted['data'] ); - $decrypt = Encryption\Crypt::multiKeyDecrypt( $crypted['encrypted'], $crypted['keys'][0], $pair1['privateKey'] ); + $decrypt = Encryption\Crypt::multiKeyDecrypt( $crypted['data'], $crypted['keys'][0], $pair1['privateKey'] ); - $this->assertEquals( $this->dataUrl, $decrypt ); + $this->assertEquals( $this->dataShort, $decrypt ); } |