summaryrefslogtreecommitdiff
path: root/sys/opencrypto
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2003-08-01 01:47:45 +0000
committeritojun <itojun@NetBSD.org>2003-08-01 01:47:45 +0000
commit79e84682bf2ff4c4e95b045d3bd817687fc8474b (patch)
tree65425cdd76d0d379ec8821cef0f1c46e4617bfae /sys/opencrypto
parent7751dc9174f56c64b0edfbc86b09a68f6a1ca0c7 (diff)
keyed-{sha1,md5} should not be truncated to 96 bits. markus@openbsd
Diffstat (limited to 'sys/opencrypto')
-rw-r--r--sys/opencrypto/xform.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/opencrypto/xform.c b/sys/opencrypto/xform.c
index 4d5fe5b575b..4628d337607 100644
--- a/sys/opencrypto/xform.c
+++ b/sys/opencrypto/xform.c
@@ -1,4 +1,4 @@
-/* $NetBSD: xform.c,v 1.2 2003/07/28 19:37:04 jonathan Exp $ */
+/* $NetBSD: xform.c,v 1.3 2003/08/01 01:47:45 itojun Exp $ */
/* $FreeBSD: src/sys/opencrypto/xform.c,v 1.1.2.1 2002/11/21 23:34:23 sam Exp $ */
/* $OpenBSD: xform.c,v 1.19 2002/08/16 22:47:25 dhartmei Exp $ */
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xform.c,v 1.2 2003/07/28 19:37:04 jonathan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform.c,v 1.3 2003/08/01 01:47:45 itojun Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -223,14 +223,14 @@ struct auth_hash auth_hash_hmac_ripemd_160_96 = {
struct auth_hash auth_hash_key_md5 = {
CRYPTO_MD5_KPDK, "Keyed MD5",
- 0, 16, 12, sizeof(MD5_CTX),
+ 0, 16, 16, sizeof(MD5_CTX),
(void (*)(void *)) MD5Init, MD5Update_int,
(void (*)(u_int8_t *, void *)) MD5Final
};
struct auth_hash auth_hash_key_sha1 = {
CRYPTO_SHA1_KPDK, "Keyed SHA1",
- 0, 20, 12, sizeof(SHA1_CTX),
+ 0, 20, 20, sizeof(SHA1_CTX),
SHA1Init_int, SHA1Update_int, SHA1Final_int
};