pub struct Sha384(/* private fields */);
Expand description
An object which calculates a SHA384 hash of some data.
Implementations§
source§impl Sha384
impl Sha384
sourcepub fn new() -> Sha384
pub fn new() -> Sha384
Creates a new hasher.
This corresponds to SHA384_Init
.
sourcepub fn update(&mut self, buf: &[u8])
pub fn update(&mut self, buf: &[u8])
Feeds some data into the hasher.
This can be called multiple times.
This corresponds to SHA384_Update
.
sourcepub fn finish(self) -> [u8; 48]
pub fn finish(self) -> [u8; 48]
Returns the hash of the data.
This corresponds to SHA384_Final
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sha384
impl RefUnwindSafe for Sha384
impl Send for Sha384
impl Sync for Sha384
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)