Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Nicolas Dichtel and committed by
David S. Miller
78d07369 1ac9ad13

+1 -1
+1 -1
include/net/ah.h
··· 4 4 #include <linux/skbuff.h> 5 5 6 6 /* This is the maximum truncated ICV length that we know of. */ 7 - #define MAX_AH_AUTH_LEN 16 7 + #define MAX_AH_AUTH_LEN 64 8 8 9 9 struct crypto_ahash; 10 10