diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-30 17:24:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-30 17:24:00 +0000 |
commit | cc447b57b36926b58dd27098f08f304149cb4ab3 (patch) | |
tree | 481c572a16d5cd383ba63924278433ff9a584e44 /sys/netinet/ip_xform.c | |
parent | c36ef4ea79422c0bacfa02bbd338fae6711cafce (diff) |
remove final low-level crypto knowledge from base ipsec code
Diffstat (limited to 'sys/netinet/ip_xform.c')
-rw-r--r-- | sys/netinet/ip_xform.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/netinet/ip_xform.c b/sys/netinet/ip_xform.c index eca4f0327e5..c4c382261f1 100644 --- a/sys/netinet/ip_xform.c +++ b/sys/netinet/ip_xform.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_xform.c,v 1.1 1999/06/18 07:24:08 deraadt Exp $ */ +/* $OpenBSD: ip_xform.c,v 1.2 1999/06/30 17:23:59 deraadt Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -321,3 +321,21 @@ struct auth_hash auth_hash_hmac_ripemd_160_96 = { (void (*)(void *, u_int8_t *, u_int16_t)) RMD160Update, (void (*)(u_int8_t *, void *)) RMD160Final }; + +struct auth_hash auth_hash_key_md5 = { + SADB_AALG_X_MD5, "Keyed MD5", + 0, AH_MD5_ALEN, + sizeof(MD5_CTX), + (void (*)(void *))MD5Init, + (void (*)(void *, u_int8_t *, u_int16_t))MD5Update, + (void (*)(u_int8_t *, void *))MD5Final +}; + +struct auth_hash auth_hash_key_sha1 = { + SADB_AALG_X_SHA1, "Keyed SHA1", + 0, AH_SHA1_ALEN, + sizeof(SHA1_CTX), + (void (*)(void *))SHA1Init, + (void (*)(void *, u_int8_t *, u_int16_t))SHA1Update, + (void (*)(u_int8_t *, void *))SHA1Final +}; |