pub struct TestHmacSha256 { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CapsuleTest for TestHmacSha256
impl CapsuleTest for TestHmacSha256
Source§fn set_client(&self, client: &'static dyn CapsuleTestClient)
fn set_client(&self, client: &'static dyn CapsuleTestClient)
Set the client for the done callback.
Source§impl ClientData<32> for TestHmacSha256
impl ClientData<32> for TestHmacSha256
Source§fn add_data_done(
&self,
_result: Result<(), ErrorCode>,
_data: SubSlice<'static, u8>,
)
fn add_data_done( &self, _result: Result<(), ErrorCode>, _data: SubSlice<'static, u8>, )
Called when the data has been added to the digest.
data is
the SubSlice passed in the call to add_data, whose
active slice contains the data that was not added. On Ok,
data has an active slice of size zero (all data was added).
Valid ErrorCode values are: Read moreSource§fn add_mut_data_done(
&self,
result: Result<(), ErrorCode>,
data: SubSliceMut<'static, u8>,
)
fn add_mut_data_done( &self, result: Result<(), ErrorCode>, data: SubSliceMut<'static, u8>, )
Called when the data has been added to the digest.
data is
the SubSliceMut passed in the call to
add_mut_data, whose active slice contains the data that was
not added. On Ok, data has an active slice of size zero
(all data was added). Valid ErrorCode values are: Read moreSource§impl ClientHash<32> for TestHmacSha256
impl ClientHash<32> for TestHmacSha256
Source§fn hash_done(
&self,
_result: Result<(), ErrorCode>,
digest: &'static mut [u8; 32],
)
fn hash_done( &self, _result: Result<(), ErrorCode>, digest: &'static mut [u8; 32], )
Called when a digest is computed.
digest is the same
reference passed to run() to store the hash value. If
result is Ok, digest stores the computed hash. If
result is Err, the data stored in digest is undefined
and may have any value. Valid ErrorCode values are: Read moreSource§impl ClientVerify<32> for TestHmacSha256
impl ClientVerify<32> for TestHmacSha256
Source§fn verification_done(
&self,
_result: Result<bool, ErrorCode>,
_compare: &'static mut [u8; 32],
)
fn verification_done( &self, _result: Result<bool, ErrorCode>, _compare: &'static mut [u8; 32], )
Called when a verification is computed.
compare is the
reference supplied to verify() and the data stored in
compare is unchanged. On Ok the bool indicates if the
computed hash matches the value in compare. Valid
ErrorCode values are: Read moreAuto Trait Implementations§
impl !Freeze for TestHmacSha256
impl !RefUnwindSafe for TestHmacSha256
impl !Send for TestHmacSha256
impl !Sync for TestHmacSha256
impl Unpin for TestHmacSha256
impl !UnwindSafe for TestHmacSha256
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