# Promote hash/siphash to crypto/siphash · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e919744c7ad2b224bef00ffc35ccacbe31a0aae7)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e919744c7ad2b224bef00ffc35ccacbe31a0aae7

Requested commit: e919744c7ad2b224bef00ffc35ccacbe31a0aae7

Commit: e919744c7ad2b224bef00ffc35ccacbe31a0aae7

Tree: 52c9ef41697ecc2d7dcbf46e022127e43f3e47b1

Author: Frank Denis

Committer: Andrew Kelley

## Message

```
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.

```

## Parents

- [9ab428185688896ab5b6d4bc924366d22bfe4ccd](https://git.cafe/gitcafe/zig/commit/9ab428185688896ab5b6d4bc924366d22bfe4ccd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e919744c7ad2b224bef00ffc35ccacbe31a0aae7?format=markdown)
