Trait ockam_vault::Hasher [−][src]
pub trait Hasher: Zeroize {
fn sha256(&mut self, data: &[u8]) -> Result<[u8; 32], Error>;
fn hkdf_sha256(
&mut self,
salt: &Secret,
info: &[u8],
ikm: Option<&Secret>,
output_attributes: Vec<SecretAttributes, Global>
) -> Result<Vec<Secret, Global>, Error>;
}
Expand description
A trait for hashing data into fixed length output
Required methods
Compute the SHA-256 digest given input data