diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-08-16 06:45:30 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-08-16 06:45:30 -0400 |
commit | c0a5a06a8285c515336a7540095d75aaad628644 (patch) | |
tree | 076394dc872573c02529f40d1e5113917aaa8084 /cryptlib.cpp | |
parent | 2ba9d3d00f38fb955a182cdc312c9298df4d0a6d (diff) | |
download | cryptopp-git-c0a5a06a8285c515336a7540095d75aaad628644.tar.gz |
Fix use of MaxDerivedKeyLength (GH #874)
Also fix memcpy with NULL buffer
Diffstat (limited to 'cryptlib.cpp')
-rw-r--r-- | cryptlib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptlib.cpp b/cryptlib.cpp index c4f03393..621f4f9a 100644 --- a/cryptlib.cpp +++ b/cryptlib.cpp @@ -334,12 +334,12 @@ void RandomNumberGenerator::GenerateIntoBufferedTransformation(BufferedTransform }
}
-size_t KeyDerivationFunction::MinDerivedLength() const
+size_t KeyDerivationFunction::MinDerivedKeyLength() const
{
return 0;
}
-size_t KeyDerivationFunction::MaxDerivedLength() const
+size_t KeyDerivationFunction::MaxDerivedKeyLength() const
{
return static_cast<size_t>(-1);
}
|