Embedded chacha: Remove some harmless dead stores in keystream mode

(From r338059.)

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2018-10-20 22:17:16 +00:00
parent 243e09430a
commit 987733eddf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339500

View File

@ -120,8 +120,10 @@ chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes)
for (;;) {
if (bytes < 64) {
#ifndef KEYSTREAM_ONLY
for (i = 0;i < bytes;++i) tmp[i] = m[i];
m = tmp;
#endif
ctarget = c;
c = tmp;
}