Decrypt overloads
Synopses
Declared in <crypto/chacha20poly1305.h>
Decrypt a message with a specified 96‐bit nonce and aad. Returns true if valid.
Decrypt a message with a specified 96‐bit nonce and aad and split the result. Returns true if valid.
Return Value
true if the tag is valid and decryption succeeded, false otherwise.
Parameters
Name |
Description |
cipher |
The ciphertext and authentication tag to decrypt and verify. |
aad |
The associated data to authenticate. |
nonce |
The 96‐bit nonce. |
plain |
Output buffer receiving the recovered plaintext. |
plain1 |
Output buffer receiving the first part of the recovered plaintext. |
plain2 |
Output buffer receiving the second part of the recovered plaintext. |
Created with MrDocs