fix generate dst offset. not used anyway for now

This commit is contained in:
Vincent Hanquez 2014-07-07 08:03:54 +01:00
parent bb3d38215f
commit 937d52c1a6

View File

@ -176,7 +176,7 @@ void cryptonite_chacha_generate(uint32_t rounds, block *dst, cryptonite_chacha_s
if (!bytes)
return;
for (;; bytes -= 64, dst += 64) {
for (;; bytes -= 64, dst += 1) {
chacha_core(rounds, &out, st);
st->d[12] += 1;