mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-05-27 21:06:05 +02:00
Merge 59aa47b859
into 64747d48ff
This commit is contained in:
commit
73ea74a2ab
|
@ -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]
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../LICENSE
|
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue