pub trait Sha256Hmac {
// Required methods
fn update(&mut self, data: &[u8]) -> Result<(), InternalError>;
fn finalize(&mut self) -> Result<Vec<u8>, InternalError>;
}
Expand description
Something which can calculate a SHA-256 HMAC.
pub trait Sha256Hmac {
// Required methods
fn update(&mut self, data: &[u8]) -> Result<(), InternalError>;
fn finalize(&mut self) -> Result<Vec<u8>, InternalError>;
}
Something which can calculate a SHA-256 HMAC.