SymmetricKey: ECB doesn't use an IV either

This commit is contained in:
terrafrost 2020-05-15 07:53:14 -05:00
parent f780640ecf
commit a82dc8e009

View File

@ -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;
}
/**