nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_cc3xx_platform_shadow_key_crypt_finish()

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).

Parameters
[in,out]ctxPointer to the derived key context.
[out]outputPointer to the output buffer.
[in]output_sizeThe size of the output buffer in bytes.
[out]output_lengthThe number of bytes written to the output buffer.
[in,out]tagPointer to the authentication tag.
[in]tag_sizeThe size of the tag buffer in bytes.
[out]tag_lengthThe number of bytes written to the tag buffer.
Returns
NRF_CC3XX_PLATFORM_SUCCESS on success, otherwise a negative value.