mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 11:20:03 +00:00
Crypt/Base: fix bug with openssl non-continuous CTR mode
This commit is contained in:
parent
dffde1fffc
commit
7b58268d58
@ -1335,8 +1335,9 @@ class Crypt_Base
|
||||
}
|
||||
} else if (!strlen($buffer['ciphertext'])) {
|
||||
$ciphertext.= openssl_encrypt($plaintext . str_repeat("\0", $block_size), $this->cipher_name_openssl, $key, $this->openssl_options, $encryptIV);
|
||||
$temp = $this->_string_pop($ciphertext, $block_size);
|
||||
if ($this->continuousBuffer) {
|
||||
$encryptIV = $this->_string_pop($ciphertext, $block_size);
|
||||
$encryptIV = $temp;
|
||||
}
|
||||
}
|
||||
if ($this->continuousBuffer) {
|
||||
|
Loading…
Reference in New Issue
Block a user