diff options
| author | Frank Denis <124872+jedisct1@users.noreply.github.com> | 2022-11-01 18:49:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-01 13:49:13 -0400 |
| commit | 0d192ee9ef6a69ca4841b1932579b9178938a6d5 (patch) | |
| tree | f1050372fe82bfa47b0da196605167254c4c5d71 /src/stage1/empty.cpp | |
| parent | 1780d7a348e0f4abfaa71e70eb4cf410a89c00c0 (diff) | |
| download | zig-0d192ee9ef6a69ca4841b1932579b9178938a6d5.tar.gz zig-0d192ee9ef6a69ca4841b1932579b9178938a6d5.zip | |
std.crypto.onetimeauth.Ghash: make GHASH 2 - 2.5x faster (#13374)
Rewrite GHASH to use 128-bit multiplication over non-reversed
integers, and up to 8 blocks aggregated reduction.
lib/std/crypto/benchmark.zig results:
Xeon E5:
Before: 1604 MiB/s
After: 4005 MiB/s
Apple M1:
Before: 2769 MiB/s
After: 6014 MiB/s
This also makes AES-GCM faster by the way.
Diffstat (limited to 'src/stage1/empty.cpp')
0 files changed, 0 insertions, 0 deletions
