mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Embedded chacha: Remove some harmless dead stores in keystream mode
(From r338059.) Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
243e09430a
commit
987733eddf
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue