Use symbolic defines StaticGetDefaultBlockSize

pull/416/head
Jeffrey Walton 2017-05-01 16:40:32 -04:00
parent bd8edfa87b
commit 9db82ed793
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 2 deletions

View File

@ -138,8 +138,8 @@ public:
//! \details keylength is unused in the default implementation. //! \details keylength is unused in the default implementation.
CRYPTOPP_STATIC_CONSTEXPR unsigned int StaticGetDefaultBlockSize(size_t keylength) CRYPTOPP_STATIC_CONSTEXPR unsigned int StaticGetDefaultBlockSize(size_t keylength)
{ {
return (keylength >= 64) ? 64 : return (keylength >= MAX_BLOCKSIZE) ? MAX_BLOCKSIZE :
(keylength >= 32) ? 32 : 16; (keylength >= DEFAULT_BLOCKSIZE) ? DEFAULT_BLOCKSIZE : MIN_BLOCKSIZE;
} }
protected: protected: