RS2 remove 40bit limit
This commit is contained in:
parent
797031170d
commit
05f85c3e6d
@ -401,7 +401,7 @@ void rc2_done(symmetric_key *skey)
|
|||||||
int rc2_keysize(int *keysize)
|
int rc2_keysize(int *keysize)
|
||||||
{
|
{
|
||||||
LTC_ARGCHK(keysize != NULL);
|
LTC_ARGCHK(keysize != NULL);
|
||||||
if (*keysize < 5) {
|
if (*keysize < 1) {
|
||||||
return CRYPT_INVALID_KEYSIZE;
|
return CRYPT_INVALID_KEYSIZE;
|
||||||
} else if (*keysize > 128) {
|
} else if (*keysize > 128) {
|
||||||
*keysize = 128;
|
*keysize = 128;
|
||||||
|
Loading…
Reference in New Issue
Block a user