fix "round up to 8" code. from kame

This commit is contained in:
itojun 2003-04-24 02:22:26 +00:00
parent 90df2da36a
commit 5116f9caae
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
/*