return $legacyEncKey;\r
\r
}\r
- \r
+\r
/**\r
* @brief encrypts content using legacy blowfish system\r
* @param $content the cleartext message you want to encrypt\r
\r
$decrypted = $bf->decrypt( $content );\r
\r
- return $decrypted;\r
+ return rtrim($decrypted, "\0");;\r
\r
}\r
\r
*/
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'] );