1
0
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:
Daniil Gentili 2019-06-16 11:26:44 +02:00
parent 2dc68c809f
commit c62fc0c733

View File

@ -1513,7 +1513,7 @@ abstract class SymmetricKey
}
break;
case self::MODE_IGE:
$plaintext = $this->openssl_ige_process($ciphertext, $this->decryptIV, false);
$plaintext = $this->handleIGE($ciphertext, $this->decryptIV, false);
break;
case self::MODE_CTR:
$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)) {
$this->openssl_emulate_ctr = true;
return true;
} else if ($this->mode === self::MODE_IGE) {
return true;
}
return false;
case self::ENGINE_MCRYPT: