mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 17:17:26 +01:00
SymmetricKey: ECB doesn't use an IV either
This commit is contained in:
parent
f780640ecf
commit
a82dc8e009
@ -780,7 +780,7 @@ abstract class SymmetricKey
|
|||||||
*/
|
*/
|
||||||
public function usesIV()
|
public function usesIV()
|
||||||
{
|
{
|
||||||
return $this->mode != self::MODE_GCM;
|
return $this->mode != self::MODE_GCM && $this->mode != self::MODE_ECB;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user