mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 13:07:53 +00:00
Crypt/Base: $block_size -> $this->block_size
This commit is contained in:
parent
31af2b3ed3
commit
4cc23b7006
@ -1001,7 +1001,7 @@ class Crypt_Base
|
||||
break;
|
||||
case CRYPT_MODE_CBC:
|
||||
if (!defined('OPENSSL_RAW_DATA')) {
|
||||
$padding = str_repeat(chr($this->block_size), $this->block_size) ^ substr($ciphertext, -$block_size);
|
||||
$padding = str_repeat(chr($this->block_size), $this->block_size) ^ substr($ciphertext, -$this->block_size);
|
||||
$plaintext.= openssl_encrypt($padding, $this->cipher_name_openssl_ecb, $this->key, true);
|
||||
}
|
||||
$plaintext = openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options, $this->decryptIV);
|
||||
|
Loading…
Reference in New Issue
Block a user