Skip to content

Commit e44f391

Browse files
NicolasDichteldavem330
authored andcommitted
ah: update maximum truncated ICV length
For SHA256, RFC4868 requires to truncate ICV length to 128 bits, hence MAX_AH_AUTH_LEN should be updated to 16. Signed-off-by: Nicolas Dichtel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fa6dd8a commit e44f391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/ah.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <linux/skbuff.h>
55

66
/* This is the maximum truncated ICV length that we know of. */
7-
#define MAX_AH_AUTH_LEN 12
7+
#define MAX_AH_AUTH_LEN 16
88

99
struct crypto_ahash;
1010

0 commit comments

Comments
 (0)