High-level symmetric authenticated decryption.
Ciphertext and authentication tag as created by secretbox().
24 bytes used once per key.
Secret shared key. 32 bytes.
Returns the plaintext if the authentication tag is correct.
Throws an exception if the authentication tag is invalid.
See Implementation
High-level symmetric authenticated decryption.