From 32abab75f29789dcd3e32f634498d25d37a0a5a3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 29 Mar 2018 20:18:27 -0400 Subject: Add KeyDerivationFunction interface (GH #610, PR #611) --- simple.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'simple.h') 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 { -- cgit v1.2.1