summaryrefslogtreecommitdiff
path: root/simple.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-03-29 20:18:27 -0400
committerGitHub <noreply@github.com>2018-03-29 20:18:27 -0400
commit32abab75f29789dcd3e32f634498d25d37a0a5a3 (patch)
tree3291ff69d432d2450c36146f29c7358790aa3c74 /simple.h
parent8c5abe604a6a9ed605c1930bdc4c73f0cce3dba0 (diff)
downloadcryptopp-git-32abab75f29789dcd3e32f634498d25d37a0a5a3.tar.gz
Add KeyDerivationFunction interface (GH #610, PR #611)
Diffstat (limited to 'simple.h')
-rw-r--r--simple.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/simple.h b/simple.h
index a8c652c5..4ebe8d81 100644
--- a/simple.h
+++ b/simple.h
@@ -69,6 +69,13 @@ public:
explicit InvalidBlockSize(const std::string &algorithm, size_t length) : InvalidArgument(algorithm + ": " + IntToString(length) + " is not a valid block size") {}
};
+/// \brief Exception thrown when an invalid derived key length is encountered
+class CRYPTOPP_DLL InvalidDerivedLength : public InvalidArgument
+{
+public:
+ explicit InvalidDerivedLength(const std::string &algorithm, size_t length) : InvalidArgument(algorithm + ": " + IntToString(length) + " is not a valid derived key length") {}
+};
+
/// \brief Exception thrown when an invalid personalization string length is encountered
class CRYPTOPP_DLL InvalidPersonalizationLength : public InvalidArgument
{