Function std::chacha20_poly1305_open
int chacha20_poly1305_open(
[]const unsigned char key,
[]const unsigned char nonce,
[]const unsigned char aad,
[]unsigned char data,
[]const unsigned char tag,
)Checks the tag in constant time and, only if it is authentic, decrypts data[0..len) in place. 1 if authentic, 0 if not (data is then left as the unauthenticated ciphertext).