ipsec: update MAX_AH_AUTH_LEN to support sha512
Subsystems (2)
PATCH 1/1 ipsec: update MAX_AH_AUTH_LEN to support sha512
Hi,
here is a second patch after "ah: update maximum truncated ICV length". Sorry for not being more watchful the first time. 512 is the maximum I found in net/xfrm/xfrm_algo.c
Regards,
Nicolas
Quoted 1 line
From
e330817aa2b33e9d1f44071072fdc4778acf8d76Mon Sep 17 00:00:00 2001
From: Nicolas Dichtel <[email protected]>
Date: Thu, 13 Jan 2011 14:20:19 -0500
Subject: [PATCH] ipsec: update MAX_AH_AUTH_LEN to support sha512
icv_truncbits is set to 256 for sha512, so updateMAX_AH_AUTH_LEN to 64.
--- include/net/ah.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/net/ah.h +1 -1
@@ -4,7 +4,7 @@#include <linux/skbuff.h> /* This is the maximum truncated ICV length that we know of. */ -#define MAX_AH_AUTH_LEN 16 +#define MAX_AH_AUTH_LEN 64struct crypto_ahash ;
Signature · 1 line
1.5.6.5
From: Nicolas Dichtel <[email protected]>
Date: Thu, 13 Jan 2011 22:51:03 +0100
Quoted 9 lines
Quoted 1 line
From
e330817aa2b33e9d1f44071072fdc4778acf8d76Mon Sep 17 00:00:00 2001From: Nicolas Dichtel <[email protected]>
Date: Thu, 13 Jan 2011 14:20:19 -0500
Subject: [PATCH] ipsec: updateMAX_AH_AUTH_LENto support sha512
icv_truncbitsis set to 256 for sha512, so updateMAX_AH_AUTH_LENto 64.Signed-off-by Nicolas Dichtel <[email protected]>
Applied.