summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ah_new.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1997-11-24 19:14:17 +0000
committerNiels Provos <provos@cvs.openbsd.org>1997-11-24 19:14:17 +0000
commite6cda69f0bd9ff2bd19dfbd0144610703481846b (patch)
treead0fb8877b7f189ab98c895cc255b7d26a4c236d /sys/netinet/ip_ah_new.c
parent33cee386e689e7acbbd46da941e7a7c55eeeef49 (diff)
add ripemd-160 as authentication function.
Diffstat (limited to 'sys/netinet/ip_ah_new.c')
-rw-r--r--sys/netinet/ip_ah_new.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/netinet/ip_ah_new.c b/sys/netinet/ip_ah_new.c
index 5b6086caec3..08c51acc335 100644
--- a/sys/netinet/ip_ah_new.c
+++ b/sys/netinet/ip_ah_new.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ah_new.c,v 1.13 1997/11/18 09:09:43 deraadt Exp $ */
+/* $OpenBSD: ip_ah_new.c,v 1.14 1997/11/24 19:14:12 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -81,6 +81,13 @@ struct ah_hash ah_new_hash[] = {
(void (*)(void *)) SHA1Init,
(void (*)(void *, u_int8_t *, u_int16_t)) SHA1Update,
(void (*)(u_int8_t *, void *)) SHA1Final
+ },
+ { ALG_AUTH_RMD160, "HMAC-RIPEMD-160-96",
+ AH_RMD160_ALEN,
+ sizeof(RMD160_CTX),
+ (void (*)(void *)) RMD160Init,
+ (void (*)(void *, u_int8_t *, u_int16_t)) RMD160Update,
+ (void (*)(u_int8_t *, void *)) RMD160Final
}
};
@@ -271,6 +278,7 @@ ah_new_input(struct mbuf *m, struct tdb *tdb)
union {
MD5_CTX md5ctx;
SHA1_CTX sha1ctx;
+ RMD160_CTX rmd160ctx;
} ctx;
u_int8_t optval;
u_char buffer[40];
@@ -557,6 +565,7 @@ ah_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb,
union {
MD5_CTX md5ctx;
SHA1_CTX sha1ctx;
+ RMD160_CTX rmd160ctx;
} ctx;
int ilen, ohlen;
u_int8_t optval;