Trait sarkara::auth::NonceMac
[−]
[src]
pub trait NonceMac: Mac { fn nonce_length() -> usize; fn with_nonce(&mut self, nonce: &[u8]) -> &mut Self; fn with_size(&mut self, len: usize) -> &mut Self; }
NonceMac
trait.
Required Methods
fn nonce_length() -> usize
Nonce length
fn with_nonce(&mut self, nonce: &[u8]) -> &mut Self
Set Nonce.
fn with_size(&mut self, len: usize) -> &mut Self
Set MAC code length.
Implementors
impl<H> NonceMac for HMAC<H> where H: GenericHash