pub struct Poly1305 { /* private fields */ }
Expand description
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§
Trait Implementations§
source§impl NewUniversalHash for Poly1305
impl NewUniversalHash for Poly1305
source§impl UniversalHash for Poly1305
impl UniversalHash for Poly1305
§type BlockSize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>
type BlockSize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>
Size of the inputs to and outputs from the universal hash function
source§fn update_padded(&mut self, data: &[u8])
fn update_padded(&mut self, data: &[u8])
Input data into the universal hash function. If the length of the
data is not a multiple of the block size, the remaining data is
padded with zeroes up to the
BlockSize
. Read more