diff options
| author | Frank Denis <github@pureftpd.org> | 2020-08-22 01:11:24 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-08-22 02:47:50 -0400 |
| commit | e919744c7ad2b224bef00ffc35ccacbe31a0aae7 (patch) | |
| tree | 52c9ef41697ecc2d7dcbf46e022127e43f3e47b1 /tools/process_headers.zig | |
| parent | 9ab428185688896ab5b6d4bc924366d22bfe4ccd (diff) | |
| download | zig-e919744c7ad2b224bef00ffc35ccacbe31a0aae7.tar.gz zig-e919744c7ad2b224bef00ffc35ccacbe31a0aae7.zip | |
Promote hash/siphash to crypto/siphash
SipHash *is* a cryptographic function, with a 128-bit security level.
However, it is not a regular hash function: a secret key is required,
and knowledge of that key allows collisions to be quickly computed offline.
SipHash is therefore more suitable to be used as a MAC.
The same API as other MACs was implemented in addition to functions directly
returning an integer.
The benchmarks have been updated accordingly.
No changes to the SipHash implementation itself.
Diffstat (limited to 'tools/process_headers.zig')
0 files changed, 0 insertions, 0 deletions
