pub struct Sha384;Expand description
SHA-384 hash function (48-byte output, FIPS 180-4 §6.5).
Implementations§
Source§impl Sha384
impl Sha384
Sourcepub const DIGEST_LEN: usize = 48
pub const DIGEST_LEN: usize = 48
Byte length of the SHA-384 digest output.
Sourcepub const OUTPUT_LEN: usize = 48
pub const OUTPUT_LEN: usize = 48
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
SHA-384 block size in bytes (FIPS 180-4).
Source§impl Sha384
impl Sha384
Sourcepub fn hash_fixed(&self, msg: &[u8]) -> [u8; 48]
pub fn hash_fixed(&self, msg: &[u8]) -> [u8; 48]
Hash msg and return the 48-byte SHA-384 digest as a fixed-size array.
Alloc-free alternative to Hash::hash_to_vec.
Trait Implementations§
impl Copy for Sha384
Source§impl Hash for Sha384
impl Hash for Sha384
Auto Trait Implementations§
impl Freeze for Sha384
impl RefUnwindSafe for Sha384
impl Send for Sha384
impl Sync for Sha384
impl Unpin for Sha384
impl UnsafeUnpin for Sha384
impl UnwindSafe for Sha384
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