pub struct Sha256Software<'a> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl DeferredCallClient for Sha256Software<'_>
impl DeferredCallClient for Sha256Software<'_>
Source§impl<'a> Digest<'a, 32> for Sha256Software<'a>
impl<'a> Digest<'a, 32> for Sha256Software<'a>
Source§fn set_client(&'a self, client: &'a dyn Client<32>)
fn set_client(&'a self, client: &'a dyn Client<32>)
Set the client instance which will receive
hash_done(),
add_data_done() and verification_done() callbacks.Source§impl<'a> DigestData<'a, 32> for Sha256Software<'a>
impl<'a> DigestData<'a, 32> for Sha256Software<'a>
Source§fn add_data(
&self,
data: SubSlice<'static, u8>,
) -> Result<(), (ErrorCode, SubSlice<'static, u8>)>
fn add_data( &self, data: SubSlice<'static, u8>, ) -> Result<(), (ErrorCode, SubSlice<'static, u8>)>
Add data to the input of the hash function/digest. Read more
Source§fn add_mut_data(
&self,
data: SubSliceMut<'static, u8>,
) -> Result<(), (ErrorCode, SubSliceMut<'static, u8>)>
fn add_mut_data( &self, data: SubSliceMut<'static, u8>, ) -> Result<(), (ErrorCode, SubSliceMut<'static, u8>)>
Add data to the input of the hash function/digest. Read more
Source§fn clear_data(&self)
fn clear_data(&self)
Clear the keys and any other internal state. Read more
Source§fn set_data_client(&'a self, _client: &'a (dyn ClientData<32> + 'a))
fn set_data_client(&'a self, _client: &'a (dyn ClientData<32> + 'a))
Set the client instance which will handle the
add_data_done
and add_mut_data_done callbacks.Source§impl<'a> DigestDataHash<'a, 32> for Sha256Software<'a>
impl<'a> DigestDataHash<'a, 32> for Sha256Software<'a>
Source§fn set_client(&'a self, _client: &'a dyn ClientDataHash<32>)
fn set_client(&'a self, _client: &'a dyn ClientDataHash<32>)
Set the client instance which will receive
hash_done() and
add_data_done() callbacks.Source§impl<'a> DigestDataVerify<'a, 32> for Sha256Software<'a>
impl<'a> DigestDataVerify<'a, 32> for Sha256Software<'a>
Source§fn set_client(&'a self, _client: &'a dyn ClientDataVerify<32>)
fn set_client(&'a self, _client: &'a dyn ClientDataVerify<32>)
Set the client instance which will receive
verify_done() and
add_data_done() callbacks.Source§impl<'a> DigestHash<'a, 32> for Sha256Software<'a>
impl<'a> DigestHash<'a, 32> for Sha256Software<'a>
Source§fn run(
&'a self,
digest: &'static mut [u8; 32],
) -> Result<(), (ErrorCode, &'static mut [u8; 32])>
fn run( &'a self, digest: &'static mut [u8; 32], ) -> Result<(), (ErrorCode, &'static mut [u8; 32])>
Compute a digest of all of the data added with
add_data and
add_data_mut, storing the computed value in digest. Read moreSource§fn set_hash_client(&'a self, _client: &'a (dyn ClientHash<32> + 'a))
fn set_hash_client(&'a self, _client: &'a (dyn ClientHash<32> + 'a))
Set the client instance which will receive the
hash_done()
callback.Source§impl<'a> DigestVerify<'a, 32> for Sha256Software<'a>
impl<'a> DigestVerify<'a, 32> for Sha256Software<'a>
Source§fn verify(
&'a self,
compare: &'static mut [u8; 32],
) -> Result<(), (ErrorCode, &'static mut [u8; 32])>
fn verify( &'a self, compare: &'static mut [u8; 32], ) -> Result<(), (ErrorCode, &'static mut [u8; 32])>
Compute a digest of all of the data added with
add_data and
add_data_mut then compare it with value in compare. Read moreSource§fn set_verify_client(&'a self, _client: &'a (dyn ClientVerify<32> + 'a))
fn set_verify_client(&'a self, _client: &'a (dyn ClientVerify<32> + 'a))
Set the client instance which will receive the
verification_done()
callback.Source§impl Sha256 for Sha256Software<'_>
impl Sha256 for Sha256Software<'_>
Auto Trait Implementations§
impl<'a> !Freeze for Sha256Software<'a>
impl<'a> !RefUnwindSafe for Sha256Software<'a>
impl<'a> !Send for Sha256Software<'a>
impl<'a> !Sync for Sha256Software<'a>
impl<'a> Unpin for Sha256Software<'a>
impl<'a> UnsafeUnpin for Sha256Software<'a>
impl<'a> !UnwindSafe for Sha256Software<'a>
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