AES: CFB: decrypted strings were being truncated

This commit is contained in:
terrafrost 2013-01-11 15:30:06 -06:00
parent d90caa17e3
commit 74e61deb4f

View File

@ -410,7 +410,7 @@ class Crypt_AES extends Crypt_Rijndael {
$last_pos = strlen($ciphertext) & 0xFFFFFFF0;
if ($last_pos) {
$plaintext = mdecrypt_generic($this->demcrypt, substr($ciphertext, 0, $last_pos));
$plaintext.= mdecrypt_generic($this->demcrypt, substr($ciphertext, 0, $last_pos));
$this->decryptIV = substr($ciphertext, $last_pos - 16, 16);
}
@ -628,4 +628,4 @@ class Crypt_AES extends Crypt_Rijndael {
}
// vim: ts=4:sw=4:et:
// vim6: fdl=1:
// vim6: fdl=1: