Module Name:    src
Committed By:   riastradh
Date:           Sat Jul 25 23:05:40 UTC 2020

Modified Files:
        src/sys/crypto/adiantum: adiantum.c

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

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 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.3 src/sys/crypto/adiantum/adiantum.c:1.4
--- src/sys/crypto/adiantum/adiantum.c:1.3	Sat Jul 25 22:47:16 2020
+++ src/sys/crypto/adiantum/adiantum.c	Sat Jul 25 23:05:40 2020
@@ -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 @@ adiantum_dec(void *p, const void *c, siz
 	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);

Reply via email to