Module Name: src
Committed By: riastradh
Date: Sat Jul 25 22:41:03 UTC 2020
Modified Files:
src/sys/crypto/adiantum: adiantum.c
Log Message:
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!
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/crypto/adiantum/adiantum.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/crypto/adiantum/adiantum.c
diff -u src/sys/crypto/adiantum/adiantum.c:1.1 src/sys/crypto/adiantum/adiantum.c:1.2
--- src/sys/crypto/adiantum/adiantum.c:1.1 Mon Jun 29 23:44:01 2020
+++ src/sys/crypto/adiantum/adiantum.c Sat Jul 25 22:41:03 2020
@@ -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 @@ adiantum_enc(void *c, const void *p, siz
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 */