diff options
| author | Frank Denis <124872+jedisct1@users.noreply.github.com> | 2023-05-23 16:36:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-23 14:36:44 +0000 |
| commit | 057d30bacc4d97f53c2e69585dc8d50186cfc7f5 (patch) | |
| tree | 0611d5cf2910f3f90707b71dbdac044d75ac030b /src/codegen/c.zig | |
| parent | 7cb3a6750762ffc6a17a76a0924079cbf4613a82 (diff) | |
| download | zig-057d30bacc4d97f53c2e69585dc8d50186cfc7f5.tar.gz zig-057d30bacc4d97f53c2e69585dc8d50186cfc7f5.zip | |
std.crypto.chacha: remove the hack for ChaCha with a 64-bit counter (#15818)
Support for 64-bit counters was a hack built upon the version with
a 32-bit counter, that emulated a larger counter by splitting the
input into large blocks.
This is fragile, particularily if the initial counter is set to
a non-default value and if we have parallelism.
Simply add a comptime parameter to check if we have a 32 bit or a
64 bit counter instead.
Also convert a couple while() loops to for(), and change @panic()
to @compileError().
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions
