RS2 remove 40bit limit

This commit is contained in:
Karel Miko 2017-02-28 20:20:51 +01:00
parent 797031170d
commit 05f85c3e6d

View File

@ -401,7 +401,7 @@ void rc2_done(symmetric_key *skey)
int rc2_keysize(int *keysize)
{
LTC_ARGCHK(keysize != NULL);
if (*keysize < 5) {
if (*keysize < 1) {
return CRYPT_INVALID_KEYSIZE;
} else if (*keysize > 128) {
*keysize = 128;