Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/opencrypto HMAC-SHA-512 has 32 bytes MAC.



details:   https://anonhg.NetBSD.org/src/rev/3eb00ed2e21a
branches:  trunk
changeset: 967060:3eb00ed2e21a
user:      hikaru <hikaru%NetBSD.org@localhost>
date:      Fri Nov 29 07:20:03 2019 +0000

description:
HMAC-SHA-512 has 32 bytes MAC.

diffstat:

 sys/opencrypto/cryptodev.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c533fea03d5c -r 3eb00ed2e21a sys/opencrypto/cryptodev.h
--- a/sys/opencrypto/cryptodev.h        Fri Nov 29 05:47:26 2019 +0000
+++ b/sys/opencrypto/cryptodev.h        Fri Nov 29 07:20:03 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cryptodev.h,v 1.39 2017/07/26 06:44:50 knakahara Exp $ */
+/*     $NetBSD: cryptodev.h,v 1.40 2019/11/29 07:20:03 hikaru Exp $ */
 /*     $FreeBSD: src/sys/opencrypto/cryptodev.h,v 1.2.2.6 2003/07/02 17:04:50 sam Exp $        */
 /*     $OpenBSD: cryptodev.h,v 1.33 2002/07/17 23:52:39 art Exp $      */
 
@@ -262,7 +262,7 @@
        struct session_n_op * sessions;
 };
 
-#define CRYPTO_MAX_MAC_LEN     20
+#define CRYPTO_MAX_MAC_LEN     32 /* Keep this updated */
 
 /* bignum parameter, in packed bytes, ... */
 struct crparam {



Home | Main Index | Thread Index | Old Index