nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ cracen_aead_update()

psa_status_t cracen_aead_update ( cracen_aead_operation_t * operation,
const uint8_t * input,
size_t input_length,
uint8_t * output,
size_t output_size,
size_t * output_length )

#include <subsys/nrf_security/src/drivers/cracen/cracen_sw/include/cracen_sw_aead.h>

Update the software AEAD operation with plaintext/ciphertext.

Parameters
[in,out]operationPointer to the AEAD operation structure.
[in]inputInput data (plaintext for encrypt, ciphertext for decrypt).
[in]input_lengthLength of input data.
[out]outputOutput buffer.
[in]output_sizeSize of output buffer.
[out]output_lengthPointer to store actual output length.
Return values
PSA_SUCCESSData processed successfully.
PSA_ERROR_NOT_SUPPORTEDUnsupported algorithm.
PSA_ERROR_BUFFER_TOO_SMALLOutput buffer too small.
PSA_ERROR_BAD_STATEOperation not initialized.