diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-04-17 03:06:28 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-04-17 03:06:28 -0400 |
commit | 30c1af2858da32e82ea22f58d14d9c4857ea0df0 (patch) | |
tree | 97a1668ef26b5ccbfc9bd597bb20a4a93e7fa394 /simple.h | |
parent | a11c9e7574b29049bb20991de3732b4acfe287cc (diff) | |
download | cryptopp-git-30c1af2858da32e82ea22f58d14d9c4857ea0df0.tar.gz |
Added BLAKE2 Cryptographic Hash and Message Authentication Code
Diffstat (limited to 'simple.h')
-rw-r--r-- | simple.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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
|