1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

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

This commit is contained in:
alt3r 3go
2019-11-15 12:28:07 +01:00
committed by Mounir IDRASSI
parent e8310731e9
commit 64de5bc78a

View File

@@ -40,7 +40,7 @@ namespace VeraCrypt
void Hash::ValidateDigestParameters (const BufferPtr &buffer) const void Hash::ValidateDigestParameters (const BufferPtr &buffer) const
{ {
if (buffer.Size() != GetDigestSize ()) if (buffer.Size() < GetDigestSize ())
throw ParameterIncorrect (SRC_POS); throw ParameterIncorrect (SRC_POS);
} }