0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/hash
Frank Denis e919744c7a 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.
History 2020-08-22 02:47:50 -04:00
..
adler.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
auto_hash.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
benchmark.zig Promote hash/siphash to crypto/siphash 2020-08-22 02:47:50 -04:00
cityhash.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
crc.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
fnv.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
murmur.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
wyhash.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00