Byte length of nonce that is used with this AEAD.
Byte length of authentication tag included in the sealed ciphertext. Result of seal() will be longer than plaintext for this number of bytes.
Authenticates ciphertext (which includes authentication tag) and associated data, decrypts ciphertext, and returns decrypted plaintext.
If authentication fails, it returns null.
If dst is given (it must be of ciphertext length minus tag length), the result will be put into it. Dst and plaintext must not overlap.
Optional
associatedData: Uint8ArrayOptional
dst: Uint8ArrayEncrypts and authenticates plaintext, authenticates associated data, and returns ciphertext, which includes authentication tag.
If dst is given (it must be the size of plaintext + the size of tag length) the result will be put into it. Dst and plaintext must not overlap.
Optional
associatedData: Uint8ArrayOptional
dst: Uint8Array
AEAD is a common interface for authenticated encryption with associated Data.