1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-27 21:06:05 +02:00
This commit is contained in:
chip 2023-03-04 06:18:47 +08:00 committed by GitHub
commit 73ea74a2ab
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 6 deletions

View File

@ -94,7 +94,7 @@ hex = "0.4.2"
page_size = "0.5.0"
rand = "0.8.0"
rand_chacha = "0.3.0"
reference_impl = { path = "./reference_impl" }
reference_impl = { path = "./reference_impl", package = "blake3_reference" }
hmac = "0.12.0"
[build-dependencies]

View File

@ -1,8 +1,13 @@
[package]
name = "reference_impl"
version = "0.0.0"
name = "blake3_reference"
version = "1.0.0"
authors = ["Jack O'Connor <oconnor663@gmail.com>", "Samuel Neves"]
description = "reference implementation of the BLAKE3 hash function"
repository = "https://github.com/BLAKE3-team/BLAKE3"
license = "CC0-1.0 OR Apache-2.0"
documentation = "https://docs.rs/blake3_reference"
readme = "README.md"
edition = "2018"
[lib]
name = "reference_impl"
path = "reference_impl.rs"

1
reference_impl/LICENSE Symbolic link
View File

@ -0,0 +1 @@
../LICENSE

View File

@ -2,7 +2,8 @@ This is the reference implementation of BLAKE3. It is used for testing and
as a readable example of the algorithms involved. Section 5.1 of [the BLAKE3
spec](https://github.com/BLAKE3-team/BLAKE3-specs/blob/master/blake3.pdf)
discusses this implementation. You can render docs for this implementation
by running `cargo doc --open` in this directory.
by running `cargo doc --open` in this directory or by visiting [docs.rs
](https://docs.rs/blake3_reference).
This implementation is a single file
([`reference_impl.rs`](reference_impl.rs)) with no dependencies. It is

View File

@ -7,7 +7,7 @@
//! # Example
//!
//! ```
//! let mut hasher = reference_impl::Hasher::new();
//! let mut hasher = blake3_reference::Hasher::new();
//! hasher.update(b"abc");
//! hasher.update(b"def");
//! let mut hash = [0; 32];