diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/crypto/engines/IesEngine.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/engines/IesEngine.cs b/crypto/src/crypto/engines/IesEngine.cs index 9139f3ffc..307cc7a80 100644 --- a/crypto/src/crypto/engines/IesEngine.cs +++ b/crypto/src/crypto/engines/IesEngine.cs @@ -98,7 +98,7 @@ namespace Org.BouncyCastle.Crypto.Engines kdf.Init(kParam); // Ensure that the length of the input is greater than the MAC in bytes - if (inLen <= mac.GetMacSize()) + if (inLen < mac.GetMacSize()) throw new InvalidCipherTextException("Length of input must be greater than the MAC"); inLen -= mac.GetMacSize(); |