![]() |
nrfxlib API 3.3.99
|
| void ocrypto_ascon_aead128_encrypt | ( | uint8_t * | ct, |
| uint8_t | tag[16], | ||
| const uint8_t * | pt, | ||
| size_t | pt_len, | ||
| const uint8_t | key[16], | ||
| const uint8_t | nonce[16], | ||
| const uint8_t * | aa, | ||
| size_t | aa_len ) |
#include <crypto/nrf_oberon/include/ocrypto_ascon_aead.h>
Ascon-AEAD128 encryption.
| [out] | ct | Ciphertext. |
| [out] | tag | Authentication tag. |
| pt | Plaintext. | |
| pt_len | Plaintext length. | |
| key | Ascon-AEAD128 key. | |
| nonce | Nonce. | |
| aa | Additional authentication data. | |
| aa_len | Additional authentication data length. |
ct may be same as pt.