aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6/ah_core.c
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-10-13 04:54:51 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-10-13 04:54:51 +0000
commitc65ee7c758bc6f2301eea90a350c234582b45a30 (patch)
tree999648f57f1025fa3716e3e1db4fac3f0c0cdebb /sys/netinet6/ah_core.c
parent7f75c3823041f95031a80044c6e928aed5b8da8c (diff)
downloadsrc-c65ee7c758bc6f2301eea90a350c234582b45a30.tar.gz
src-c65ee7c758bc6f2301eea90a350c234582b45a30.zip
- support AES XCBC MAC for AH
- correct SADB_X_AALG_RIPEMD160HMAC to 8 Obtained from: KAME
Notes
Notes: svn path=/head/; revision=121061
Diffstat (limited to 'sys/netinet6/ah_core.c')
-rw-r--r--sys/netinet6/ah_core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netinet6/ah_core.c b/sys/netinet6/ah_core.c
index ce3cbcd99bbf..ef5a491e5547 100644
--- a/sys/netinet6/ah_core.c
+++ b/sys/netinet6/ah_core.c
@@ -74,6 +74,7 @@
#ifdef INET6
#include <netinet6/ah6.h>
#endif
+#include <netinet6/ah_aesxcbcmac.h>
#ifdef IPSEC_ESP
#include <netinet6/esp.h>
#ifdef INET6
@@ -188,6 +189,10 @@ ah_algorithm_lookup(idx)
"hmac-ripemd160",
ah_hmac_ripemd160_init, ah_hmac_ripemd160_loop,
ah_hmac_ripemd160_result, },
+ { ah_sumsiz_1216, ah_common_mature, 128, 128,
+ "aes-xcbc-mac",
+ ah_aes_xcbc_mac_init, ah_aes_xcbc_mac_loop,
+ ah_aes_xcbc_mac_result, },
};
switch (idx) {
@@ -209,6 +214,8 @@ ah_algorithm_lookup(idx)
return &ah_algorithms[7];
case SADB_X_AALG_RIPEMD160HMAC:
return &ah_algorithms[8];
+ case SADB_X_AALG_AES_XCBC_MAC:
+ return &ah_algorithms[9];
default:
return NULL;
}