Skip to content

Commit

Permalink
ah: update maximum truncated ICV length
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Dichtel authored and David S. Miller committed Jan 11, 2011
1 parent fa6dd8a commit e44f391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/ah.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <linux/skbuff.h>

/* This is the maximum truncated ICV length that we know of. */
#define MAX_AH_AUTH_LEN 12
#define MAX_AH_AUTH_LEN 16

struct crypto_ahash;

Expand Down

0 comments on commit e44f391

Please sign in to comment.