diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-07-24 08:03:21 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-07-24 08:03:21 +0000 |
commit | ea317ae3d0bef8a5fdf61b6dcbb1413e46cc336b (patch) | |
tree | b9e29db64e3ef83852b269e3a43371ea54164f95 /sys/netinet/ip_ah.c | |
parent | b7a6a9b3191243be9b4fc439ff12ee73b9512178 (diff) |
hmac-sha2-{256,384,512} support in AH/ESP auth. markus ok
Diffstat (limited to 'sys/netinet/ip_ah.c')
-rw-r--r-- | sys/netinet/ip_ah.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/netinet/ip_ah.c b/sys/netinet/ip_ah.c index 12af3f94f7d..c2689573892 100644 --- a/sys/netinet/ip_ah.c +++ b/sys/netinet/ip_ah.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ah.c,v 1.76 2003/07/09 22:03:16 itojun Exp $ */ +/* $OpenBSD: ip_ah.c,v 1.77 2003/07/24 08:03:19 itojun Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -107,6 +107,18 @@ ah_init(struct tdb *tdbp, struct xformsw *xsp, struct ipsecinit *ii) thash = &auth_hash_hmac_ripemd_160_96; break; + case SADB_AALG_SHA2_256: + thash = &auth_hash_hmac_sha2_256_96; + break; + + case SADB_AALG_SHA2_384: + thash = &auth_hash_hmac_sha2_384_96; + break; + + case SADB_AALG_SHA2_512: + thash = &auth_hash_hmac_sha2_512_96; + break; + case SADB_X_AALG_MD5: thash = &auth_hash_key_md5; break; |