diff options
-rw-r--r-- | src/Volume/Hash.cpp | 2 |
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); } |