pub struct Sha3_512;Expand description
SHA3-512 hash function (64-byte output, FIPS 202).
Implementations§
Source§impl Sha3_512
impl Sha3_512
Sourcepub const DIGEST_LEN: usize = 64
pub const DIGEST_LEN: usize = 64
Byte length of the SHA3-512 digest output.
Sourcepub const OUTPUT_LEN: usize = 64
pub const OUTPUT_LEN: usize = 64
Output length in bytes (alias for DIGEST_LEN; use for generic const contexts).
Sourcepub const BLOCK_SIZE: usize = 72
pub const BLOCK_SIZE: usize = 72
SHA3-512 block (rate) size in bytes (FIPS 202).
Source§impl Sha3_512
impl Sha3_512
Sourcepub fn hash_fixed(&self, msg: &[u8]) -> [u8; 64]
pub fn hash_fixed(&self, msg: &[u8]) -> [u8; 64]
Hash msg and return the 64-byte SHA3-512 digest as a fixed-size array.
Alloc-free alternative to Hash::hash_to_vec.
Trait Implementations§
impl Copy for Sha3_512
Source§impl Hash for Sha3_512
impl Hash for Sha3_512
Auto Trait Implementations§
impl Freeze for Sha3_512
impl RefUnwindSafe for Sha3_512
impl Send for Sha3_512
impl Sync for Sha3_512
impl Unpin for Sha3_512
impl UnsafeUnpin for Sha3_512
impl UnwindSafe for Sha3_512
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