pub struct Blake3KeyedHasher { /* private fields */ }Expand description
Keyed (derived-key) BLAKE3 hasher, equivalent to the oracle’s
b3sum --derive-key="<context>" --no-names.
The oracle switches to keyed mode whenever the SNAPDIR_MANIFEST_CONTEXT
environment variable is non-empty (and only for b3sum; see
_snapdir_manifest_define_checksum_fn). Per the library-purity principle,
snapdir-core does not read that environment variable: the CLI lane
reads it and constructs this hasher with the context string passed in as a
parameter.
The digest is blake3::derive_key(context, input) rendered as lowercase
hex, byte-for-byte identical to b3sum --derive-key=<context> --no-names.
Implementations§
Trait Implementations§
Source§impl Clone for Blake3KeyedHasher
impl Clone for Blake3KeyedHasher
Source§fn clone(&self) -> Blake3KeyedHasher
fn clone(&self) -> Blake3KeyedHasher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Blake3KeyedHasher
impl Debug for Blake3KeyedHasher
Auto Trait Implementations§
impl Freeze for Blake3KeyedHasher
impl RefUnwindSafe for Blake3KeyedHasher
impl Send for Blake3KeyedHasher
impl Sync for Blake3KeyedHasher
impl Unpin for Blake3KeyedHasher
impl UnsafeUnpin for Blake3KeyedHasher
impl UnwindSafe for Blake3KeyedHasher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more