![]() |
nrfxlib API 3.3.99
|
| int nrf_cc3xx_platform_shadow_key_crypt_finish | ( | nrf_cc3xx_platform_shadow_key_ctx_t * | ctx, |
| uint8_t * | output, | ||
| size_t | output_size, | ||
| size_t * | output_length, | ||
| uint8_t * | tag, | ||
| size_t | tag_size, | ||
| size_t * | tag_length ) |
#include <crypto/nrf_cc310_platform/include/nrf_cc3xx_platform_shadow_key.h>
Function to finalize the encryption/decryption operation.
The tag buffer is used as an ouput buffer when performing authenticated encryption and an input buffer when performing authenticated decryption. The tag_length parameter is only used when the tag is an output buffer (authenticated encryption).
| [in,out] | ctx | Pointer to the derived key context. |
| [out] | output | Pointer to the output buffer. |
| [in] | output_size | The size of the output buffer in bytes. |
| [out] | output_length | The number of bytes written to the output buffer. |
| [in,out] | tag | Pointer to the authentication tag. |
| [in] | tag_size | The size of the tag buffer in bytes. |
| [out] | tag_length | The number of bytes written to the tag buffer. |