Trait quinn_proto::crypto::HmacKey
source · 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