chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c68d3e
)
symm/chacha.c: Fix `tell' response.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 13 Apr 2017 13:47:28 +0000
(14:47 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 13 Apr 2017 17:27:44 +0000
(18:27 +0100)
symm/chacha.c
patch
|
blob
|
blame
|
history
diff --git
a/symm/chacha.c
b/symm/chacha.c
index 6b8726e94db7b24b8577b61f995502050f2f902e..43d23dc7ac5b5be407fe2d5116f5919ec2ccadfe 100644
(file)
--- 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@ --- *
*