Commit e44f391187495e0deaf7b9f0077e94f270837d1a

Authored by Nicolas Dichtel
Committed by David S. Miller
1 parent fa6dd8a2c8

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 <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -4,7 +4,7 @@
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 12
  7 +#define MAX_AH_AUTH_LEN 16
8 8  
9 9 struct crypto_ahash;
10 10