pub trait HmacKey: Send + Sync {
    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

Method for signing a message

Length of sign’s output

Method for verifying a message

Implementations on Foreign Types

Implementors