Symmetric decryption using XChaCha20-Poly1305-IETF.
The key is expected to be 256 bits in size.
The nonce extracted from the cipher text.
It is expected that the cipher text will have the following format:
nonce || mac || cipherText
This is an authenticated form of decryption.
The mac provides integrity and authenticity.
The returned buffers are guaranteed to unpooled.
This means the underlying ArrayBuffer is safely transferrable.
Symmetric decryption using XChaCha20-Poly1305-IETF. The key is expected to be 256 bits in size. The nonce extracted from the cipher text. It is expected that the cipher text will have the following format:
nonce || mac || cipherText
This is an authenticated form of decryption. The mac provides integrity and authenticity. The returned buffers are guaranteed to unpooled. This means the underlyingArrayBuffer
is safely transferrable.