mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 07:10:57 +00:00
Crypt_Base: fix to the IV handling of the last commit
This commit is contained in:
parent
b35cedcb15
commit
69614034ec
@ -1327,7 +1327,7 @@ class Crypt_Base
|
|||||||
$encryptIV = $this->_string_pop($ciphertext, $block_size);
|
$encryptIV = $this->_string_pop($ciphertext, $block_size);
|
||||||
}
|
}
|
||||||
if (!defined('OPENSSL_RAW_DATA')) {
|
if (!defined('OPENSSL_RAW_DATA')) {
|
||||||
$encryptIV.= openssl_encrypt(str_repeat(chr($this->block_size), $this->block_size), $this->cipher_name_openssl_ecb, $key, $this->openssl_options);
|
$encryptIV.= openssl_encrypt('', $this->cipher_name_openssl_ecb, $key, $this->openssl_options);
|
||||||
}
|
}
|
||||||
$encryptIV = openssl_decrypt($encryptIV, $this->cipher_name_openssl_ecb, $key, $this->openssl_options);
|
$encryptIV = openssl_decrypt($encryptIV, $this->cipher_name_openssl_ecb, $key, $this->openssl_options);
|
||||||
if ($overflow) {
|
if ($overflow) {
|
||||||
|
Loading…
Reference in New Issue
Block a user