- Use define of an algorithm with the biggest block length to describe

EALG_MAX_BLOCK_LEN instead of hardcoded value.
- Kill an unused define.
This commit is contained in:
Pawel Jakub Dawidek 2006-06-04 14:36:42 +00:00
parent bc58b0ec67
commit eec31f224d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159230

View File

@ -97,7 +97,7 @@
#define CAST128_BLOCK_LEN 8
#define RIJNDAEL128_BLOCK_LEN 16
#define AES_BLOCK_LEN RIJNDAEL128_BLOCK_LEN
#define EALG_MAX_BLOCK_LEN 16 /* Keep this updated */
#define EALG_MAX_BLOCK_LEN AES_BLOCK_LEN /* Keep this updated */
#define CRYPTO_ALGORITHM_MIN 1
#define CRYPTO_DES_CBC 1
@ -153,8 +153,6 @@ struct crypt_op {
caddr_t iv;
};
#define CRYPTO_MAX_MAC_LEN 20
/* bignum parameter, in packed bytes, ... */
struct crparam {
caddr_t crp_p;