Trait Digest

Source
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§

Source

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.

Implementors§

impl<'a> Digest<'a, 32> for Sha256Software<'a>

impl<'a, S: Sha256 + DigestDataHash<'a, 32>> Digest<'a, 32> for HmacSha256Software<'a, S>

impl<'a> Digest<'a, 32> for Hmac<'a>