Encrypt overloads
Synopses
Declared in <crypto/chacha20poly1305.h>
Encrypt a message with a specified 96‐bit nonce and aad.
Encrypt a message (given split into plain1 + plain2) with a specified 96‐bit nonce and aad.
Parameters
Name |
Description |
plain |
The plaintext to encrypt. |
aad |
The associated data to authenticate but not encrypt. |
nonce |
The 96‐bit nonce. |
cipher |
Output buffer receiving the ciphertext and authentication tag. |
plain1 |
The first part of the plaintext to encrypt. |
plain2 |
The second part of the plaintext to encrypt. |
Created with MrDocs