diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-03-29 20:18:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-29 20:18:27 -0400 |
commit | 32abab75f29789dcd3e32f634498d25d37a0a5a3 (patch) | |
tree | 3291ff69d432d2450c36146f29c7358790aa3c74 /simple.h | |
parent | 8c5abe604a6a9ed605c1930bdc4c73f0cce3dba0 (diff) | |
download | cryptopp-git-32abab75f29789dcd3e32f634498d25d37a0a5a3.tar.gz |
Add KeyDerivationFunction interface (GH #610, PR #611)
Diffstat (limited to 'simple.h')
-rw-r--r-- | simple.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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
{
|