summaryrefslogtreecommitdiff
path: root/simple.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-17 03:06:28 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-17 03:06:28 -0400
commit30c1af2858da32e82ea22f58d14d9c4857ea0df0 (patch)
tree97a1668ef26b5ccbfc9bd597bb20a4a93e7fa394 /simple.h
parenta11c9e7574b29049bb20991de3732b4acfe287cc (diff)
downloadcryptopp-git-30c1af2858da32e82ea22f58d14d9c4857ea0df0.tar.gz
Added BLAKE2 Cryptographic Hash and Message Authentication Code
Diffstat (limited to 'simple.h')
-rw-r--r--simple.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/simple.h b/simple.h
index b195feb1..588bee15 100644
--- a/simple.h
+++ b/simple.h
@@ -58,6 +58,22 @@ public:
explicit InvalidRounds(const std::string &algorithm, unsigned int rounds) : InvalidArgument(algorithm + ": " + IntToString(rounds) + " is not a valid number of rounds") {}
};
+//! \class InvalidPersonalizationLength
+//! \brief Exception thrown when an invalid personalization string length is encountered
+class CRYPTOPP_DLL InvalidPersonalizationLength : public InvalidArgument
+{
+public:
+ explicit InvalidPersonalizationLength(const std::string &algorithm, size_t length) : InvalidArgument(algorithm + ": " + IntToString(length) + " is not a valid salt length") {}
+};
+
+//! \class InvalidSaltLength
+//! \brief Exception thrown when an invalid salt length is encountered
+class CRYPTOPP_DLL InvalidSaltLength : public InvalidArgument
+{
+public:
+ explicit InvalidSaltLength(const std::string &algorithm, size_t length) : InvalidArgument(algorithm + ": " + IntToString(length) + " is not a valid salt length") {}
+};
+
// *****************************
//! \class Bufferless