pub struct Sha<'a, M: RawMutex, PHY> { /* private fields */ }Implementations§
Source§impl<'a, M, PHY> Sha<'a, M, PHY>
impl<'a, M, PHY> Sha<'a, M, PHY>
pub async fn init(&mut self) -> Result<(), Error>
pub async fn update(&mut self, data: &[u8]) -> Result<(), Error>
pub async fn chain(&mut self, data: &[u8]) -> Result<&mut Self, Error>
pub async fn finalize(&mut self) -> Result<Digest, Error>
pub async fn digest(&mut self, data: &[u8]) -> Result<Digest, Error>
Source§impl<'a, M, PHY> Sha<'a, M, PHY>
impl<'a, M, PHY> Sha<'a, M, PHY>
pub fn init_blocking(&mut self) -> Result<(), Error>
pub fn update_blocking(&mut self, data: &[u8]) -> Result<(), Error>
pub fn chain_blocking(&mut self, data: &[u8]) -> Result<&mut Self, Error>
pub fn finalize_blocking(self) -> Result<Digest, Error>
pub fn digest_blocking(self, data: &[u8]) -> Result<Digest, Error>
Trait Implementations§
Source§impl<'a, M, PHY> FixedOutput for Sha<'a, M, PHY>
impl<'a, M, PHY> FixedOutput for Sha<'a, M, PHY>
Source§fn finalize_into(self, out: &mut Output<Self>)
fn finalize_into(self, out: &mut Output<Self>)
Consume value and write result into provided array.
Source§fn finalize_fixed(self) -> Output<Self>
fn finalize_fixed(self) -> Output<Self>
Retrieve result and consume the hasher instance.
impl<'a, M, PHY> HashMarker for Sha<'a, M, PHY>
Source§impl<'a, M, PHY> OutputSizeUser for Sha<'a, M, PHY>
impl<'a, M, PHY> OutputSizeUser for Sha<'a, M, PHY>
Auto Trait Implementations§
impl<'a, M, PHY> !RefUnwindSafe for Sha<'a, M, PHY>
impl<'a, M, PHY> !UnwindSafe for Sha<'a, M, PHY>
impl<'a, M, PHY> Forget for Sha<'a, M, PHY>
impl<'a, M, PHY> Freeze for Sha<'a, M, PHY>where
&'a AtCaClient<M, PHY>: Freeze,
impl<'a, M, PHY> Move for Sha<'a, M, PHY>
impl<'a, M, PHY> Send for Sha<'a, M, PHY>where
&'a AtCaClient<M, PHY>: Send,
impl<'a, M, PHY> Sync for Sha<'a, M, PHY>where
&'a AtCaClient<M, PHY>: Sync,
impl<'a, M, PHY> Unpin for Sha<'a, M, PHY>where
&'a AtCaClient<M, PHY>: Unpin,
impl<'a, M, PHY> UnsafeUnpin for Sha<'a, M, PHY>where
&'a AtCaClient<M, PHY>: UnsafeUnpin,
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