chiark / gitweb /
symm/chacha.c: Set the correct nonce size for `xchachaNN'.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 15 Aug 2019 17:16:02 +0000 (18:16 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 21 Sep 2019 15:57:16 +0000 (16:57 +0100)
Oops.

(cherry picked from commit 9acc7e10f1da03be55e3bc2cdcbbd5775253e3d0)

symm/chacha.c

index 3419861873f522d888b6bb817184c25f778b29a1..71522003daa005dae9aa342cde4eb10c3ebec23f 100644 (file)
@@ -590,7 +590,7 @@ CHACHA_VARS(DEFGCIPHER)
                                                                        \
   const gccipher xchacha##r = {                                                \
     "xchacha" #r, chacha_keysz,                                                \
-    CHACHA_NONCESZ, gxinit_##r                                         \
+    XCHACHA_NONCESZ, gxinit_##r                                                \
   };
 
 CHACHA_VARS(DEFGXCIPHER)