Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/crypto/adiantum Omit useless AES call.
details: https://anonhg.NetBSD.org/src/rev/835606b404a1
branches: trunk
changeset: 974157:835606b404a1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jul 25 22:41:03 2020 +0000
description:
Omit useless AES call.
This must have been a vestige from editing that I never got around to
removing, oops. Should speed up adiantum encryption a wee bit!
diffstat:
sys/crypto/adiantum/adiantum.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 524b781513e4 -r 835606b404a1 sys/crypto/adiantum/adiantum.c
--- a/sys/crypto/adiantum/adiantum.c Sat Jul 25 22:40:08 2020 +0000
+++ b/sys/crypto/adiantum/adiantum.c Sat Jul 25 22:41:03 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adiantum.c,v 1.1 2020/06/29 23:44:01 riastradh Exp $ */
+/* $NetBSD: adiantum.c,v 1.2 2020/07/25 22:41:03 riastradh Exp $ */
/*-
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: adiantum.c,v 1.1 2020/06/29 23:44:01 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: adiantum.c,v 1.2 2020/07/25 22:41:03 riastradh Exp $");
#include <sys/types.h>
#include <sys/endian.h>
@@ -2144,8 +2144,6 @@
KASSERT(len % 16 == 0);
- aes_enc(&A->kk_enc, p, buf, AES_256_NROUNDS);
-
adiantum_hash(h, pL, Llen, t, tlen, A->kt, A->kl, A->kn);
add128(buf, pR, h); /* buf := P_M */
aes_enc(&A->kk_enc, buf, buf, AES_256_NROUNDS); /* buf := C_M */
Home |
Main Index |
Thread Index |
Old Index