pub trait Digest<'a, const DIGEST_LEN: usize>:
DigestData<'a, DIGEST_LEN>
+ DigestHash<'a, DIGEST_LEN>
+ DigestVerify<'a, DIGEST_LEN> {
// Required method
fn set_client(&'a self, client: &'a dyn Client<DIGEST_LEN>);
}
Expand description
Computes a digest (cryptographic hash) over data or performs verification.
‘DIGEST_LEN’ is the length of the ‘u8’ array to store the digest output.
Required Methods§
Sourcefn set_client(&'a self, client: &'a dyn Client<DIGEST_LEN>)
fn set_client(&'a self, client: &'a dyn Client<DIGEST_LEN>)
Set the client instance which will receive hash_done()
,
add_data_done()
and verification_done()
callbacks.