Source-Changes-HG archive

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

[src/trunk]: src/sys/crypto/adiantum Fix typo in comment; match the paper's n...



details:   https://anonhg.NetBSD.org/src/rev/39e1a8a4d880
branches:  trunk
changeset: 936337:39e1a8a4d880
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jul 25 23:05:40 2020 +0000

description:
Fix typo in comment; match the paper's notation.

No functional change.

diffstat:

 sys/crypto/adiantum/adiantum.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 34d0430a5c10 -r 39e1a8a4d880 sys/crypto/adiantum/adiantum.c
--- a/sys/crypto/adiantum/adiantum.c    Sat Jul 25 22:59:55 2020 +0000
+++ b/sys/crypto/adiantum/adiantum.c    Sat Jul 25 23:05:40 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adiantum.c,v 1.3 2020/07/25 22:47:16 riastradh Exp $   */
+/*     $NetBSD: adiantum.c,v 1.4 2020/07/25 23:05:40 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.3 2020/07/25 22:47:16 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: adiantum.c,v 1.4 2020/07/25 23:05:40 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/endian.h>
@@ -1916,7 +1916,7 @@
        KASSERT(len % 16 == 0);
 
        adiantum_hash(h, cL, Llen, t, tlen, A->kt, A->kl, A->kn);
-       add128(buf, cR, h);     /* buf := P_M */
+       add128(buf, cR, h);     /* buf := C_M */
 
        memcpy(nonce, buf, 16);
        le64enc(nonce + 16, 1);



Home | Main Index | Thread Index | Old Index