summaryrefslogtreecommitdiff
path: root/cryptlib.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-04-05 20:34:08 -0400
committerJeffrey Walton <noloader@gmail.com>2018-04-05 20:34:08 -0400
commit62a9574f3fd60cd5cb6d34841e20b63f239e166f (patch)
tree0a617841ad6bb4285952d7b02d11416db687d634 /cryptlib.cpp
parent5aec2a4ab0233fe90f83501a1abc838f7c0e2de4 (diff)
downloadcryptopp-git-62a9574f3fd60cd5cb6d34841e20b63f239e166f.tar.gz
Make AuthenticatedSymmetricCipher::AlgorithmName non-pure
Also see https://stackoverflow.com/q/49658309/608639
Diffstat (limited to 'cryptlib.cpp')
-rw-r--r--cryptlib.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cryptlib.cpp b/cryptlib.cpp
index d7fa4df0..2b232dcf 100644
--- a/cryptlib.cpp
+++ b/cryptlib.cpp
@@ -268,6 +268,12 @@ bool AuthenticatedSymmetricCipher::DecryptAndVerify(byte *message, const byte *m
return TruncatedVerify(mac, macLength);
}
+std::string AuthenticatedSymmetricCipher::AlgorithmName() const
+{
+ // Squash C4505 on Visual Studio 2008 and friends
+ return "Unknown";
+}
+
unsigned int RandomNumberGenerator::GenerateBit()
{
return GenerateByte() & 1;