From c62fc0c73373426d3ff8729f10e82e09e1874866 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 16 Jun 2019 11:26:44 +0200 Subject: [PATCH] Enable openssl w/ IGE --- phpseclib/Crypt/Common/SymmetricKey.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpseclib/Crypt/Common/SymmetricKey.php b/phpseclib/Crypt/Common/SymmetricKey.php index 9010e302..90758447 100644 --- a/phpseclib/Crypt/Common/SymmetricKey.php +++ b/phpseclib/Crypt/Common/SymmetricKey.php @@ -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: