![]() |
nrfxlib API 3.3.99
|
| int ocrypto_chacha20_poly1305_final_dec | ( | ocrypto_chacha20_poly1305_ctx * | ctx, |
| const uint8_t | tag[(16)] ) |
#include <crypto/nrf_oberon/include/ocrypto_chacha20_poly1305.h>
ChaCha20-Poly1305 final decoder step.
The generator state ctx is used to finalize the decryption and check the tag.
| ctx | Generator state. |
| tag | Received authentication tag. |
| 0 | If tag is valid. |
| -1 | Otherwise. |