mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-27 00:58:25 +00:00
RC2: OpenSSL is pretty restricted in where it can be used
This commit is contained in:
parent
1dd1c65bfd
commit
e93dc8d272
@ -366,7 +366,7 @@ class Crypt_RC2 extends Crypt_Base
|
||||
{
|
||||
switch ($engine) {
|
||||
case CRYPT_ENGINE_OPENSSL:
|
||||
if ($this->current_key_length != 128 && strlen($this->orig_key) != 16) {
|
||||
if ($this->current_key_length != 128 || strlen($this->orig_key) != 16) {
|
||||
return false;
|
||||
}
|
||||
$this->cipher_name_openssl_ecb = 'rc2-ecb';
|
||||
|
Loading…
x
Reference in New Issue
Block a user