Use symbolic defines StaticGetDefaultBlockSize
parent
bd8edfa87b
commit
9db82ed793
4
seckey.h
4
seckey.h
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue