mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
This commit is contained in:
committed by
Mounir IDRASSI
parent
e8310731e9
commit
64de5bc78a
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user