pub trait HmacKey: Send + Sync {
// Required methods
fn sign(&self, data: &[u8], signature_out: &mut [u8]);
fn signature_len(&self) -> usize;
fn verify(&self, data: &[u8], signature: &[u8]) -> Result<(), CryptoError>;
}
Expand description
A key for signing with HMAC-based algorithms
Required Methods§
Sourcefn signature_len(&self) -> usize
fn signature_len(&self) -> usize
Length of sign
’s output