Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Oct 2018 22:17:17 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339500 - head/sys/crypto/chacha20
Message-ID:  <201810202217.w9KMHH8v062273@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Sat Oct 20 22:17:16 2018
New Revision: 339500
URL: https://svnweb.freebsd.org/changeset/base/339500

Log:
  Embedded chacha: Remove some harmless dead stores in keystream mode
  
  (From r338059.)
  
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/crypto/chacha20/chacha.c

Modified: head/sys/crypto/chacha20/chacha.c
==============================================================================
--- head/sys/crypto/chacha20/chacha.c	Sat Oct 20 22:14:29 2018	(r339499)
+++ head/sys/crypto/chacha20/chacha.c	Sat Oct 20 22:17:16 2018	(r339500)
@@ -120,8 +120,10 @@ chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u
 
   for (;;) {
     if (bytes < 64) {
+#ifndef KEYSTREAM_ONLY
       for (i = 0;i < bytes;++i) tmp[i] = m[i];
       m = tmp;
+#endif
       ctarget = c;
       c = tmp;
     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810202217.w9KMHH8v062273>