crypto_aead_encrypt (9) - Linux Man Pages
crypto_aead_encrypt: encrypt plaintext
crypto_aead_encrypt - encrypt plaintext
int crypto_aead_encrypt(struct aead_request
- reference to the aead_request handle that holds all information needed to perform the cipher operation
Encrypt plaintext data using the aead_request handle. That data structure and how it is filled with data is discussed with the aead_request_* functions.
IMPORTANT NOTE The encryption operation creates the authentication data / tag. That data is concatenated with the created ciphertext. The ciphertext memory size is therefore the given number of block cipher blocks + the size defined by the crypto_aead_setauthsize invocation. The caller must ensure that sufficient memory is available for the ciphertext and the authentication tag.
Stephan Mueller <smueller [at] chronox.de>
Marek Vasut <marek [at] denx.de>