Static ReadonlyAUTHENTICATION_The byte length of a AuthenticationTag.
A copy of the bytes; mutating it does not touch this value.
StaticfromRestore an AuthenticationTag from a fixed-size array of bytes.
StaticfromGet hex string representation.
Get base64 representation.
Get string representation.
Returns the untagged CBOR encoding (as a byte string). AuthenticationTag has no CBOR tag - it's serialized as a plain byte string.
Returns the CBOR binary representation.
StaticfromFrom the untagged byte string, as the reference's TryFrom<CBOR>
(error type Error): a non-byte-string is Cbor (CBOR error: …), a
wrong length InvalidSize.
StaticfromCreates an AuthenticationTag from CBOR binary data.
Authentication tag for AEAD encryption (16 bytes)
An
AuthenticationTagis a 16-byte value generated during ChaCha20-Poly1305 authenticated encryption. It serves as a message authentication code (MAC) that verifies both the authenticity and integrity of the encrypted message.During decryption, the tag is verified to ensure:
This implementation follows the Poly1305 MAC algorithm as specified in RFC-8439.