From 0ec0de7241ed93f15a2685837ccd1ac62c934592 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 13 Nov 2015 13:32:22 +0700 Subject: Fix length check --- crypto/src/crypto/engines/IesEngine.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto') 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(); -- cgit 1.5.1