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: