From: Mark Wooding Date: Thu, 13 Apr 2017 13:47:28 +0000 (+0100) Subject: symm/chacha.c: Fix `tell' response. X-Git-Tag: 2.3.1~13 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/d0c288ad14a950b519958db7a6dcec17694c5bf1?hp=-c symm/chacha.c: Fix `tell' response. --- d0c288ad14a950b519958db7a6dcec17694c5bf1 diff --git a/symm/chacha.c b/symm/chacha.c index 6b8726e9..43d23dc7 100644 --- a/symm/chacha.c +++ b/symm/chacha.c @@ -218,7 +218,7 @@ unsigned long chacha_tell(chacha_ctx *ctx) { kludge64 i = chacha_tellu64(ctx); return (GET64(unsigned long, i)); } kludge64 chacha_tellu64(chacha_ctx *ctx) - { kludge64 i; SET64(i, ctx->a[9], ctx->a[8]); return (i); } + { kludge64 i; SET64(i, ctx->a[13], ctx->a[12]); return (i); } /* --- @chacha{20,12,8}_encrypt@ --- * *