diff --git a/phpseclib/Crypt/Common/SymmetricKey.php b/phpseclib/Crypt/Common/SymmetricKey.php index e41af0bc..b28327fe 100644 --- a/phpseclib/Crypt/Common/SymmetricKey.php +++ b/phpseclib/Crypt/Common/SymmetricKey.php @@ -780,7 +780,7 @@ abstract class SymmetricKey */ public function usesIV() { - return $this->mode != self::MODE_GCM; + return $this->mode != self::MODE_GCM && $this->mode != self::MODE_ECB; } /**