pub trait HmacImpl: Clone + OutputSizeUser {
// Required methods
fn new_from_slice(key: &[u8]) -> Self;
fn update(&mut self, data: &[u8]);
fn finalize(self) -> Output<Self>;
}Expand description
Trait representing a HMAC implementation.
Most users should use Hmac or SimpleHmac.
Required Methods§
Sourcefn new_from_slice(key: &[u8]) -> Self
fn new_from_slice(key: &[u8]) -> Self
Create new HMAC state with the given key.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".