Skip to content
Snippets Groups Projects
Commit cea9208c authored by Florin Peter's avatar Florin Peter
Browse files

fix broken legacy tests

parent e7d1fe82
No related branches found
No related tags found
No related merge requests found
......@@ -652,7 +652,7 @@ class Crypt {
return $legacyEncKey;
}
/**
* @brief encrypts content using legacy blowfish system
* @param $content the cleartext message you want to encrypt
......@@ -683,7 +683,7 @@ class Crypt {
$decrypted = $bf->decrypt( $content );
return $decrypted;
return rtrim($decrypted, "\0");;
}
......
......@@ -595,7 +595,7 @@ class Test_Crypt extends \PHPUnit_Framework_TestCase {
*/
function testLegacyKeyRecryptKeyfileEncrypt( $crypted ) {
$recrypted = Encryption\Crypt::LegacyKeyRecryptKeyfile( $crypted, $this->pass, $this->genPublicKey, $this->pass );
$recrypted = Encryption\Crypt::LegacyKeyRecryptKeyfile( $crypted, $this->pass, array($this->genPublicKey), $this->pass, '');
$this->assertNotEquals( $this->dataLong, $recrypted['data'] );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment