From 937d52c1a650c91b008fd03179154bd099dcae5b Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Mon, 7 Jul 2014 08:03:54 +0100 Subject: [PATCH] fix generate dst offset. not used anyway for now --- cbits/cryptonite_chacha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbits/cryptonite_chacha.c b/cbits/cryptonite_chacha.c index 5aeefe2..088eac9 100644 --- a/cbits/cryptonite_chacha.c +++ b/cbits/cryptonite_chacha.c @@ -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;