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

◆ nrf_cc3xx_platform_shadow_key_crypt_setup()

int nrf_cc3xx_platform_shadow_key_crypt_setup ( nrf_cc3xx_platform_shadow_key_ctx_t * ctx,
nrf_cc3xx_platform_shadow_key_enc_cipher_t cipher,
nrf_cc3xx_platform_shadow_key_enc_mode_t mode,
const uint8_t * nonce,
size_t nonce_size,
const uint8_t * aad,
size_t aad_size,
size_t plaintext_size )

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

Function to setup the encryption/decryption operation.

Parameters
[in,out]ctxPointer to the derived key context.
[in]cipherThe cipher used for the encryption/decryption.
[in]modeThe mode (encryption/decryption) of the operation.
[in]noncePointer to the additional data used in the authenticated encryption.
[in]nonce_sizeThe size of the additional data in bytes.
[in]aadPointer to the additional data used in the authenticated encryption.
[in]aad_sizeThe size of the additional data in bytes.
[in]plaintext_sizeThe size of the plaintext in bytes.
Returns
NRF_CC3XX_PLATFORM_SUCCESS on success, otherwise a negative value.