RC2: OpenSSL is pretty restricted in where it can be used

This commit is contained in:
terrafrost 2015-01-29 23:19:34 -06:00
parent 1dd1c65bfd
commit e93dc8d272

View File

@ -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';