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

◆ cracen_sw_increment_counter_be()

psa_status_t cracen_sw_increment_counter_be ( uint8_t * ctr_buf,
size_t ctr_buf_size,
size_t start_pos )

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

Increment counter value stored as a big endian buffer.

This function is used by software workarounds for CRACEN peripheral.

Parameters
[in,out]ctr_bufCounter.
[in]ctr_buf_sizeCounter buffer size.
[in]start_posCounter starting position index.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_INVALID_ARGUMENTThe counter overflowed.