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

◆ nrf_cc3xx_platform_derived_key_set_auth_info()

int nrf_cc3xx_platform_derived_key_set_auth_info ( nrf_cc3xx_platform_derived_key_ctx_t * ctx,
const uint8_t * nonce,
size_t nonce_size,
const uint8_t * aad,
size_t aad_size,
uint8_t * tag,
size_t tag_size )

#include <crypto/nrf_cc310_platform/include/nrf_cc3xx_platform_derived_key.h>

Function to set the authenticated encryption information.

Parameters
[in,out]ctxPointer to the derived key context.
[in]noncePointer to the nonce.
[in]nonce_sizeThe size of the nonce in bytes.
[in]aadPointer to the additional data used in the authenticated encryption.
[in]aad_sizeThe size of the additional data in bytes.
[in]tagPointer to the buffer used for the tag.
[in]tag_sizeThe size of the tag buffer in bytes.
Returns
NRF_CC3XX_PLATFORM_SUCCESS on success, otherwise a negative value.