mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
parent
f23314f731
commit
a11985e6e4
5
seckey.h
5
seckey.h
@ -194,12 +194,9 @@ public:
|
||||
//! \details keylength is provided in bytes, not bits.
|
||||
static size_t CRYPTOPP_API StaticGetValidKeyLength(size_t keylength)
|
||||
{
|
||||
#if MIN_KEYLENGTH > 0
|
||||
if (keylength < (size_t)MIN_KEYLENGTH)
|
||||
return MIN_KEYLENGTH;
|
||||
else
|
||||
#endif
|
||||
if (keylength > (size_t)MAX_KEYLENGTH)
|
||||
else if (keylength > (size_t)MAX_KEYLENGTH)
|
||||
return (size_t)MAX_KEYLENGTH;
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user