diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-13 13:32:22 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-13 13:32:22 +0700 |
commit | 0ec0de7241ed93f15a2685837ccd1ac62c934592 (patch) | |
tree | 1ed36c2afda97feec1fced52ab3f68f1f5033fb5 /crypto | |
parent | added GetInstance methods (diff) | |
download | BouncyCastle.NET-ed25519-0ec0de7241ed93f15a2685837ccd1ac62c934592.tar.xz |
Fix length check
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(); |