mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-05 13:38:50 +01:00
...
This commit is contained in:
parent
54b18b4547
commit
8f31e59efa
@ -2447,6 +2447,8 @@ abstract class SymmetricKey
|
||||
self::MODE_STREAM => MCRYPT_MODE_STREAM,
|
||||
];
|
||||
|
||||
set_error_handler(function() {});
|
||||
|
||||
$this->demcrypt = mcrypt_module_open($this->cipher_name_mcrypt, '', $mcrypt_modes[$this->mode], '');
|
||||
$this->enmcrypt = mcrypt_module_open($this->cipher_name_mcrypt, '', $mcrypt_modes[$this->mode], '');
|
||||
|
||||
@ -2456,6 +2458,8 @@ abstract class SymmetricKey
|
||||
if ($this->mode == self::MODE_CFB) {
|
||||
$this->ecb = mcrypt_module_open($this->cipher_name_mcrypt, '', MCRYPT_MODE_ECB, '');
|
||||
}
|
||||
|
||||
restore_error_handler();
|
||||
} // else should mcrypt_generic_deinit be called?
|
||||
|
||||
if ($this->mode == self::MODE_CFB) {
|
||||
|
Loading…
Reference in New Issue
Block a user