fix "round up to 8" code. from kame
This commit is contained in:
parent
90df2da36a
commit
5116f9caae
|
@ -1171,7 +1171,7 @@ eay_bf_keylen(len)
|
|||
return 448;
|
||||
if (len < 40 || len > 448)
|
||||
return -1;
|
||||
return len + 7 / 8;
|
||||
return (len + 7) / 8;
|
||||
}
|
||||
|
||||
#ifdef HAVE_OPENSSL_RC5_H
|
||||
|
@ -1236,7 +1236,7 @@ eay_rc5_keylen(len)
|
|||
return 128;
|
||||
if (len < 40 || len > 2040)
|
||||
return -1;
|
||||
return len + 7 / 8;
|
||||
return (len + 7) / 8;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1378,7 +1378,7 @@ eay_cast_keylen(len)
|
|||
return 128;
|
||||
if (len < 40 || len > 128)
|
||||
return -1;
|
||||
return len + 7 / 8;
|
||||
return (len + 7) / 8;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue