1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 04:34:45 +01:00

Merge pull request #43 from petrich/patch-1

fixed corrupted decrypt() in CTR mode
This commit is contained in:
terrafrost 2013-01-04 19:05:04 -08:00
commit 29c69808ae

View File

@ -879,7 +879,7 @@ class Crypt_Rijndael {
if ($this->continuousBuffer) {
$this->decryptIV = $xor;
if ($start = strlen($ciphertext) % $block_size) {
$buffer['ciphertext'] = substr($key, $start) . $buffer['encrypted'];
$buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
}
}
break;