mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 09:38:06 +01:00
Enable openssl w/ IGE
This commit is contained in:
parent
2dc68c809f
commit
c62fc0c733
@ -1513,7 +1513,7 @@ abstract class SymmetricKey
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case self::MODE_IGE:
|
case self::MODE_IGE:
|
||||||
$plaintext = $this->openssl_ige_process($ciphertext, $this->decryptIV, false);
|
$plaintext = $this->handleIGE($ciphertext, $this->decryptIV, false);
|
||||||
break;
|
break;
|
||||||
case self::MODE_CTR:
|
case self::MODE_CTR:
|
||||||
$plaintext = $this->openssl_ctr_process($ciphertext, $this->decryptIV, $this->debuffer);
|
$plaintext = $this->openssl_ctr_process($ciphertext, $this->decryptIV, $this->debuffer);
|
||||||
@ -2238,6 +2238,8 @@ abstract class SymmetricKey
|
|||||||
if ($this->mode === self::MODE_CTR && in_array(static::$cipher_name_openssl_ecb, $methods)) {
|
if ($this->mode === self::MODE_CTR && in_array(static::$cipher_name_openssl_ecb, $methods)) {
|
||||||
$this->openssl_emulate_ctr = true;
|
$this->openssl_emulate_ctr = true;
|
||||||
return true;
|
return true;
|
||||||
|
} else if ($this->mode === self::MODE_IGE) {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
case self::ENGINE_MCRYPT:
|
case self::ENGINE_MCRYPT:
|
||||||
|
Loading…
Reference in New Issue
Block a user