WIP switch to new permutation
BLAKE3 is a cryptographic hash function that is
The complete specifications and design rationale are available as a PDF and its LaTeX source.
This repository provides the reference implementation of BLAKE3, which is coded in Rust and includes portable as well as optimized code for various instructions sets.
The b3sum sub-crate provides a command line interface. SSE4.1 and AVX2 implementations are provided in Rust, enabled by default, with dynamic CPU feature detection. AVX-512 and NEON implementation are available via C FFI, controlled by the c_avx512 and c_neon features. Rayon-based multi-threading is controlled by the rayon feature.
Eventually docs will be published on docs.rs. For now, you can build and view the docs locally with cargo doc --open.
The following graph shows BLAKE3's multi-threaded throughput on an Intel Kany Lake processor:
BLAKE3 was designed by:
WARNING: BLAKE3 is not a password-hash function, because it's designed to be fast, whereas password hashing should not be fast. If you hash passwords to store the hashes or if you derive keys from password, we recommend Argon2.
TODO
BLAKE3 is essentially an adapted version of BLAKE2 using the tree Bao tree mode.
BLAKE2 is an established cryptographic hash function, for example supported by OpenSSL, and used in countless applications. Bao is a tree hashing mode satisfying the requirements for provably secure tree hashing.
Please see CONTRIBUTING.md
The source code in the present repository is dual-licensed under Apache 2 and CC0 licences.