pub fn digest(
a: &Admitted,
h: HashAlgorithm,
data: &[u8],
) -> Result<Vec<u8>, CryptoError>Expand description
The full-length digest of data under h. Refuses, in order, a hash a’s profile does not
admit or its module line lacks (Admitted::admit_hash) and one this backend does not
implement (CryptoError::Unavailable). Panics only if the module’s digest context fails.