diff options
Diffstat (limited to 'sys/crypto/xform.c')
-rw-r--r-- | sys/crypto/xform.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/crypto/xform.c b/sys/crypto/xform.c index e498c869a60..7d813e956e4 100644 --- a/sys/crypto/xform.c +++ b/sys/crypto/xform.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xform.c,v 1.16 2001/08/28 12:20:43 ben Exp $ */ +/* $OpenBSD: xform.c,v 1.17 2002/03/05 15:59:41 markus Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -194,14 +194,16 @@ struct auth_hash auth_hash_key_sha1 = { struct auth_hash auth_hash_md5 = { CRYPTO_MD5, "MD5", - 0, 16, 0, 0, - NULL, NULL, NULL + 0, 16, 16, sizeof(MD5_CTX), + (void (*) (void *)) MD5Init, MD5Update_int, + (void (*) (u_int8_t *, void *)) MD5Final }; struct auth_hash auth_hash_sha1 = { CRYPTO_SHA1, "SHA1", - 0, 20, 0, 0, - NULL, NULL, NULL + 0, 20, 20, sizeof(SHA1_CTX), + (void (*)(void *)) SHA1Init, SHA1Update_int, + (void (*)(u_int8_t *, void *)) SHA1Final }; /* Compression instance */ |