pub struct Poly1305 { /* private fields */ }
Expand description
Poly1305 MAC (branch-free limb arithmetic)
Implementations§
Source§impl Poly1305
impl Poly1305
Sourcepub fn new(key: &[u8]) -> Result<Self>
pub fn new(key: &[u8]) -> Result<Self>
Construct a new Poly1305
context from a 32-byte key.
The key is split into the clamped r
portion (first 16 bytes) and the
s
portion (last 16 bytes) exactly as specified in RFC 8439 §2.5.2.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Poly1305
impl RefUnwindSafe for Poly1305
impl Send for Poly1305
impl Sync for Poly1305
impl Unpin for Poly1305
impl UnwindSafe for Poly1305
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> MacExt for Twhere
T: Mac,
impl<T> MacExt for Twhere
T: Mac,
Source§fn builder(&mut self) -> GenericMacBuilder<'_, T>
fn builder(&mut self) -> GenericMacBuilder<'_, T>
Creates a builder for this MAC instance