Struct poly1305::Poly1305 [−][src]
pub struct Poly1305 { /* fields omitted */ }The Poly1305 universal hash function.
Note that Poly1305 is not a traditional MAC and is single-use only (a.k.a. “one-time authenticator”).
For this reason it doesn’t impl the crypto_mac::Mac trait.
Implementations
impl Poly1305[src]
impl Poly1305[src]Trait Implementations
impl NewUniversalHash for Poly1305[src]
impl NewUniversalHash for Poly1305[src]impl UniversalHash for Poly1305[src]
impl UniversalHash for Poly1305[src]type BlockSize = U16
Size of the inputs to and outputs from the universal hash function
fn update(&mut self, block: &Block)[src]
Input data into the Poly1305 universal hash function
fn reset(&mut self)[src]
Reset internal state
fn finalize(self) -> Tag[src]
Get the hashed output
pub fn update_padded(&mut self, data: &[u8])[src]
pub fn finalize_reset(&mut self) -> Output<Self>[src]
pub fn verify(
self,
other: &GenericArray<u8, Self::BlockSize>
) -> Result<(), Error>[src]
self,
other: &GenericArray<u8, Self::BlockSize>
) -> Result<(), Error>