284 |
#define CRYPTOPP_WIN32_AVAILABLE |
#define CRYPTOPP_WIN32_AVAILABLE |
285 |
#endif |
#endif |
286 |
|
|
287 |
#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) |
#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) || defined(__BEOS__) |
288 |
#define CRYPTOPP_UNIX_AVAILABLE |
#define CRYPTOPP_UNIX_AVAILABLE |
289 |
#endif |
#endif |
290 |
|
|
3773 |
class CRYPTOPP_DLL InvalidKeyLength : public InvalidArgument |
class CRYPTOPP_DLL InvalidKeyLength : public InvalidArgument |
3774 |
{ |
{ |
3775 |
public: |
public: |
3776 |
explicit InvalidKeyLength(const std::string &algorithm, unsigned int length) : InvalidArgument(algorithm + ": " + IntToString(length) + " is not a valid key length") {} |
explicit InvalidKeyLength(const std::string &algorithm, unsigned int length) : InvalidArgument(algorithm + ": " + IntToString(length, 10) + " is not a valid key length") {} |
3777 |
}; |
}; |
3778 |
|
|
3779 |
//! _ |
//! _ |