Struct esp32c3_hal::sha::Sha
source · pub struct Sha<'d> { /* private fields */ }
Implementations§
source§impl<'d> Sha<'d>
impl<'d> Sha<'d>
pub fn new(sha: impl Peripheral<P = SHA> + 'd, mode: ShaMode) -> Sha<'d>
pub fn first_run(&self) -> bool
pub fn finished(&self) -> bool
pub fn digest_length(&self) -> usize
pub fn update<'a>( &mut self, buffer: &'a [u8] ) -> Result<&'a [u8], Error<Infallible>>
pub fn finish(&mut self, output: &mut [u8]) -> Result<(), Error<Infallible>>
Auto Trait Implementations§
impl<'d> RefUnwindSafe for Sha<'d>
impl<'d> Send for Sha<'d>
impl<'d> Sync for Sha<'d>
impl<'d> Unpin for Sha<'d>
impl<'d> !UnwindSafe for Sha<'d>
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