From 9db82ed793159ced2143969828ac27d1f198e825 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 1 May 2017 16:40:32 -0400 Subject: [PATCH] Use symbolic defines StaticGetDefaultBlockSize --- seckey.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seckey.h b/seckey.h index c8bbfc90..b400a229 100644 --- a/seckey.h +++ b/seckey.h @@ -138,8 +138,8 @@ public: //! \details keylength is unused in the default implementation. CRYPTOPP_STATIC_CONSTEXPR unsigned int StaticGetDefaultBlockSize(size_t keylength) { - return (keylength >= 64) ? 64 : - (keylength >= 32) ? 32 : 16; + return (keylength >= MAX_BLOCKSIZE) ? MAX_BLOCKSIZE : + (keylength >= DEFAULT_BLOCKSIZE) ? DEFAULT_BLOCKSIZE : MIN_BLOCKSIZE; } protected: