summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2003-08-05 12:20:35 +0000
committeritojun <itojun@NetBSD.org>2003-08-05 12:20:35 +0000
commit3236f238b3b486c4cbbff0f9fac645d2bce6b701 (patch)
treefd4ea7c1dc5cdc598d5339e9fb852e83428ae33c /sys
parent7d8f0fb59c0eed9e2efca4945e3600bb3e4c954f (diff)
increase AH_MAXSUMSIZE to 512/8, for hmac-sha2-512
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/ah.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet6/ah.h b/sys/netinet6/ah.h
index 99d446ee2cd..35b6789ce59 100644
--- a/sys/netinet6/ah.h
+++ b/sys/netinet6/ah.h
@@ -1,4 +1,4 @@
-/* $NetBSD: ah.h,v 1.20 2003/07/22 03:24:26 itojun Exp $ */
+/* $NetBSD: ah.h,v 1.21 2003/08/05 12:20:35 itojun Exp $ */
/* $KAME: ah.h,v 1.16 2001/09/04 08:43:19 itojun Exp $ */
/*
@@ -77,9 +77,7 @@ struct ah_algorithm {
void (*result) __P((struct ah_algorithm_state *, u_int8_t *, size_t));
};
-#define AH_MAXSUMSIZE 16
-
-#define HMACSIZE 16
+#define AH_MAXSUMSIZE (512 / 8)
extern const struct ah_algorithm *ah_algorithm_lookup __P((int));