aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorFrank Denis <github@pureftpd.org>2021-03-14 22:30:25 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-03-17 11:25:51 -0700
commit119fc318a753f57b55809e9256e823accba6b56a (patch)
treeaacfb9f97b9bc87b29e630f1445686f616014980 /src/codegen.zig
parent587243c7a50b751846f0633d762f4153ef230ce6 (diff)
downloadzig-119fc318a753f57b55809e9256e823accba6b56a.tar.gz
zig-119fc318a753f57b55809e9256e823accba6b56a.zip
std/crypto/chacha20: add round-reduced versions & cleanup internals
See https://eprint.iacr.org/2019/1492.pdf for justification. 8 rounds ChaCha20 provides a 2.5x speedup, and is still believed to be safe. Round-reduced versions are actually deployed (ex: Android filesystem encryption), and thanks to the magic of comptime, it doesn't take much to support them. This also makes the ChaCha20 code more consistent with the Salsa20 code, removing internal functions that were not part of the public API any more. No breaking changes; the public API remains backwards compatible.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions