aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJay Petacat <jay@jayschwa.net>2020-02-01 22:29:51 -0500
committerJay Petacat <jay@jayschwa.net>2020-02-01 23:03:23 -0500
commit4b86c1e3bbe65b8caa9c2e769af633fa8825bb94 (patch)
treed4124ffec41681a5e239b01c58681d488b5871e2 /src
parent4f2652d504c796bbba6d7ccf6a699dc01055e3e7 (diff)
downloadzig-4b86c1e3bbe65b8caa9c2e769af633fa8825bb94.tar.gz
zig-4b86c1e3bbe65b8caa9c2e769af633fa8825bb94.zip
crypto: Add BLAKE3 hashing algorithm
This is a translation of the [official reference implementation][1] with few other changes. The bad news is that the reference implementation is designed for simplicity and not speed, so there's a lot of room for performance improvement. The good news is that, according to the crypto benchmark, the implementation is still fast relative to the other hashing algorithms: ``` md5: 430 MiB/s sha1: 386 MiB/s sha256: 191 MiB/s sha512: 275 MiB/s sha3-256: 233 MiB/s sha3-512: 137 MiB/s blake2s: 464 MiB/s blake2b: 526 MiB/s blake3: 576 MiB/s poly1305: 1479 MiB/s hmac-md5: 653 MiB/s hmac-sha1: 553 MiB/s hmac-sha256: 222 MiB/s x25519: 8685 exchanges/s ``` [1]: https://github.com/BLAKE3-team/BLAKE3
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions