VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Volume
diff options
context:
space:
mode:
Diffstat (limited to 'src/Volume')
-rw-r--r--src/Volume/Hash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Volume/Hash.cpp b/src/Volume/Hash.cpp
index 5e64b3ff..3925dde6 100644
--- a/src/Volume/Hash.cpp
+++ b/src/Volume/Hash.cpp
@@ -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);
}