Debug build: fix ParameterIncorrect error on hash benchmark start (#542) (#544)

This commit is contained in:
alt3r 3go authored and Mounir IDRASSI committed 2019-11-15 12:28:06 +01:00
1 parent e8310731e9
commit 64de5bc78a
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ namespace VeraCrypt
void Hash::ValidateDigestParameters (const BufferPtr &buffer) const
{
if (buffer.Size() != GetDigestSize ())
if (buffer.Size() < GetDigestSize ())
throw ParameterIncorrect (SRC_POS);
}