pub struct Blake2b256;Expand description
BLAKE2b-256 hash function (32-byte output, RFC 7693).
Implementations§
Source§impl Blake2b256
impl Blake2b256
Sourcepub const DIGEST_LEN: usize = 32
pub const DIGEST_LEN: usize = 32
Byte length of the BLAKE2b-256 digest output.
Sourcepub const OUTPUT_LEN: usize = 32
pub const OUTPUT_LEN: usize = 32
Output length in bytes (alias for DIGEST_LEN; use for generic const contexts).
Sourcepub const BLOCK_SIZE: usize = 128
pub const BLOCK_SIZE: usize = 128
BLAKE2b block size in bytes (RFC 7693).
Source§impl Blake2b256
impl Blake2b256
Sourcepub fn hash_fixed(&self, msg: &[u8]) -> [u8; 32]
pub fn hash_fixed(&self, msg: &[u8]) -> [u8; 32]
Hash msg and return the 32-byte BLAKE2b-256 digest as a fixed-size array.
Alloc-free alternative to Hash::hash_to_vec.
Trait Implementations§
Source§impl Clone for Blake2b256
impl Clone for Blake2b256
Source§fn clone(&self) -> Blake2b256
fn clone(&self) -> Blake2b256
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 moreimpl Copy for Blake2b256
Source§impl Debug for Blake2b256
impl Debug for Blake2b256
Source§impl Default for Blake2b256
impl Default for Blake2b256
Source§fn default() -> Blake2b256
fn default() -> Blake2b256
Returns the “default value” for a type. Read more
Source§impl Hash for Blake2b256
impl Hash for Blake2b256
Auto Trait Implementations§
impl Freeze for Blake2b256
impl RefUnwindSafe for Blake2b256
impl Send for Blake2b256
impl Sync for Blake2b256
impl Unpin for Blake2b256
impl UnsafeUnpin for Blake2b256
impl UnwindSafe for Blake2b256
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