Module blake3

Source
Expand description

BLAKE3 implementation of the Hasher trait.

This implementation uses the blake3 crate to generate BLAKE3 digests.

§Example

use commonware_cryptography::{Hasher, blake3::Blake3};

// Create a new BLAKE3 hasher
let mut hasher = Blake3::new();

// Update the hasher with some messages
hasher.update(b"hello,");
hasher.update(b"world!");

// Finalize the hasher to get the digest
let digest = hasher.finalize();

// Print the digest
println!("digest: {:?}", digest);

Structs§

Blake3
BLAKE3 hasher.
Digest
Digest of a BLAKE3 hashing operation.

Functions§

hash
Generate a BLAKE3 Digest from a message.

Type Aliases§

CoreBlake3
Re-export blake3::Hasher as CoreBlake3 for external use if needed.