Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/opencrypto crypto(4): accept CRYPTO_SHA2_384_HMAC and CR...
details: https://anonhg.NetBSD.org/src/rev/5264d5640759
branches: trunk
changeset: 465572:5264d5640759
user: hikaru <hikaru%NetBSD.org@localhost>
date: Fri Nov 29 08:30:30 2019 +0000
description:
crypto(4): accept CRYPTO_SHA2_384_HMAC and CRYPTO_SHA2_512_HMAC.
diffstat:
sys/opencrypto/cryptodev.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r ab79f01e6490 -r 5264d5640759 sys/opencrypto/cryptodev.c
--- a/sys/opencrypto/cryptodev.c Fri Nov 29 07:20:03 2019 +0000
+++ b/sys/opencrypto/cryptodev.c Fri Nov 29 08:30:30 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cryptodev.c,v 1.101 2019/06/13 02:02:45 christos Exp $ */
+/* $NetBSD: cryptodev.c,v 1.102 2019/11/29 08:30:30 hikaru Exp $ */
/* $FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.4.2.4 2003/06/03 00:09:02 sam Exp $ */
/* $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $ */
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.101 2019/06/13 02:02:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.102 2019/11/29 08:30:30 hikaru Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1644,6 +1644,12 @@
return EINVAL;
}
break;
+ case CRYPTO_SHA2_384_HMAC:
+ thash = &auth_hash_hmac_sha2_384;
+ break;
+ case CRYPTO_SHA2_512_HMAC:
+ thash = &auth_hash_hmac_sha2_512;
+ break;
case CRYPTO_RIPEMD160_HMAC:
thash = &auth_hash_hmac_ripemd_160;
break;
Home |
Main Index |
Thread Index |
Old Index