VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Volume
diff options
context:
space:
mode:
authoralt3r 3go <alt3r.3go@protonmail.com>2019-11-15 12:28:07 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-11-15 12:28:06 +0100
commit64de5bc78a7b101bc55e19ae520c328f749bdf74 (patch)
tree49e93ee0fd49aa65b1f96ab88539bb5243be5fb4 /src/Volume
parente8310731e930fe2de561500c60fe7e8f94f97ae5 (diff)
downloadVeraCrypt-64de5bc78a7b101bc55e19ae520c328f749bdf74.tar.gz
VeraCrypt-64de5bc78a7b101bc55e19ae520c328f749bdf74.zip
Debug build: fix ParameterIncorrect error on hash benchmark start (#542) (#544)
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);
}