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

◆ cracen_sw_chacha20_poly1305_update()

psa_status_t cracen_sw_chacha20_poly1305_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_chacha20_poly1305.h>

Update the software ChaCha20-Poly1305 operation with new data.

Parameters
[in,out]operationPointer to the AEAD operation structure.
[in]inputInput data (plaintext for encryption, ciphertext for decryption).
[in]input_lengthLength of the input data.
[out]outputOutput buffer (ciphertext for encryption, plaintext for decryption).
[in]output_sizeSize of the output buffer.
[out]output_lengthPointer where to store the actual output length.
Return values
PSA_SUCCESSData processed successfully.
PSA_ERROR_BUFFER_TOO_SMALLOutput buffer too small.