From eec31f224defd68a0ba2b61084ff8ceb0a5a9e61 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Sun, 4 Jun 2006 14:36:42 +0000 Subject: [PATCH] - Use define of an algorithm with the biggest block length to describe EALG_MAX_BLOCK_LEN instead of hardcoded value. - Kill an unused define. --- sys/opencrypto/cryptodev.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/opencrypto/cryptodev.h b/sys/opencrypto/cryptodev.h index 8f8317b03cd..df74fa58ca4 100644 --- a/sys/opencrypto/cryptodev.h +++ b/sys/opencrypto/cryptodev.h @@ -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;