![]() |
nrfxlib API 3.3.99
|
| int ocrypto_ascon_aead128_decrypt | ( | uint8_t * | pt, |
| const uint8_t | tag[16], | ||
| const uint8_t * | ct, | ||
| size_t | ct_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 decryption.
| [out] | pt | Plaintext. |
| tag | Authentication tag. | |
| ct | Ciphertext. | |
| ct_len | Ciphertext length. | |
| key | Ascon-AEAD128 key. | |
| nonce | Nonce. | |
| aa | Additional authentication data. | |
| aa_len | Additional authentication data length. |
ct may be same as pt.| 0 | If tag is valid. |
| -1 | Otherwise. |