pub struct Tag(/* private fields */);Expand description
A Poly1305 authentication tag
This tag is used to verify the authenticity of a message. It is always 16 bytes (128 bits) long.
§Security Properties
- The tag provides 128-bit security against forgery attempts
- Tags are deterministic: the same message and key always produce the same tag
- Verification is constant-time to prevent timing attacks
§Usage
- The tag should be transmitted or stored alongside the message
- The recipient can verify the tag to ensure the message hasn’t been tampered with
- The tag does not need to be kept secret, but the key used to create it does
Implementations§
Trait Implementations§
impl Eq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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