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);
}