@blockchaincommons/components - v1.0.0-beta.4
    Preparing search index...

    Class AuthenticationTag

    Authentication tag for AEAD encryption (16 bytes)

    An AuthenticationTag is 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:

    • The message has not been tampered with (integrity)
    • The message was encrypted by someone who possesses the encryption key (authenticity)

    This implementation follows the Poly1305 MAC algorithm as specified in RFC-8439.

    Index
    AUTHENTICATION_TAG_SIZE: number = AUTHENTICATION_TAG_SIZE

    The byte length of a AuthenticationTag.

    • Returns the untagged CBOR encoding (as a byte string). AuthenticationTag has no CBOR tag - it's serialized as a plain byte string.

      Returns Cbor