fix generate dst offset. not used anyway for now
This commit is contained in:
parent
bb3d38215f
commit
937d52c1a6
@ -176,7 +176,7 @@ void cryptonite_chacha_generate(uint32_t rounds, block *dst, cryptonite_chacha_s
|
|||||||
if (!bytes)
|
if (!bytes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (;; bytes -= 64, dst += 64) {
|
for (;; bytes -= 64, dst += 1) {
|
||||||
chacha_core(rounds, &out, st);
|
chacha_core(rounds, &out, st);
|
||||||
|
|
||||||
st->d[12] += 1;
|
st->d[12] += 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user