From d25b0b98bca6a6a8d268096aefe64b1f04a385ad Mon Sep 17 00:00:00 2001 From: VANHULLEBUS Yvan Date: Fri, 25 Feb 2011 09:29:32 +0000 Subject: [PATCH] fixed size of AH_ALEN_MAX, which is 64 bytes for SHA-512. Obtained from: Matthias Drochner MFC after: 3d --- sys/opencrypto/xform.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/opencrypto/xform.h b/sys/opencrypto/xform.h index 0a7f981d511..8df7b07e8bb 100644 --- a/sys/opencrypto/xform.h +++ b/sys/opencrypto/xform.h @@ -43,7 +43,8 @@ struct auth_hash { void (*Final) (u_int8_t *, void *); }; -#define AH_ALEN_MAX 20 /* max authenticator hash length */ +/* XXX use a define common with other hash stuff ! */ +#define AH_ALEN_MAX 64 /* max authenticator hash length */ struct enc_xform { int type;