Skip to contentSkip to conversation

ipsec: update MAX_AH_AUTH_LEN to support sha512

PATCH Applied Nicolas Dichtel 2 participants 2 messages Jan 13, 2011 – Jan 14, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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 e330817aa2b33e9d1f44071072fdc4778acf8d76 Mon 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 update
MAX_AH_AUTH_LEN to 64.

---
 include/net/ah.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/net/ah.h +1 -1
index be7798d..ca95b98 100644
@@ -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	64
 
 struct crypto_ahash;
 
Signature · 1 line
1.5.6.5
maintainer Applied
#1 lore raw

From: Nicolas Dichtel <[email protected]>
Date: Thu, 13 Jan 2011 22:51:03 +0100

Quoted 9 lines
Quoted 1 line

From e330817aa2b33e9d1f44071072fdc4778acf8d76 Mon 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 update
MAX_AH_AUTH_LEN to 64.

Applied.