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.
0d192ee9efFrank Denis committed on 11/1/2022, 5:49:13 PM· committed by GitHubparent1780d7a
2 files changedLine totals unavailable