Rename AALG_MAX_RESULT_LEN to HASH_MAX_LEN to look more constent with
other defines.
This commit is contained in:
parent
9ea7e4210f
commit
0bbc4bf97d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159228
@ -72,6 +72,9 @@
|
||||
#define MD5_KPDK_HASH_LEN 16
|
||||
#define SHA1_KPDK_HASH_LEN 20
|
||||
|
||||
/* Maximum hash algorithm result length */
|
||||
#define HASH_MAX_LEN SHA2_512_HASH_LEN /* Keep this updated */
|
||||
|
||||
/* HMAC values */
|
||||
#define NULL_HMAC_BLOCK_LEN 64
|
||||
#define MD5_HMAC_BLOCK_LEN 64
|
||||
@ -96,9 +99,6 @@
|
||||
#define AES_BLOCK_LEN RIJNDAEL128_BLOCK_LEN
|
||||
#define EALG_MAX_BLOCK_LEN 16 /* Keep this updated */
|
||||
|
||||
/* Maximum hash algorithm result length */
|
||||
#define AALG_MAX_RESULT_LEN 64 /* Keep this updated */
|
||||
|
||||
#define CRYPTO_ALGORITHM_MIN 1
|
||||
#define CRYPTO_DES_CBC 1
|
||||
#define CRYPTO_3DES_CBC 2
|
||||
|
@ -473,7 +473,7 @@ static int
|
||||
swcr_authcompute(struct cryptodesc *crd, struct swcr_data *sw, caddr_t buf,
|
||||
int outtype)
|
||||
{
|
||||
unsigned char aalg[AALG_MAX_RESULT_LEN];
|
||||
unsigned char aalg[HASH_MAX_LEN];
|
||||
struct auth_hash *axf;
|
||||
union authctx ctx;
|
||||
int err;
|
||||
|
Loading…
Reference in New Issue
Block a user