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

◆ cracen_hash_all_inputs_with_context()

int cracen_hash_all_inputs_with_context ( struct sxhash * sxhashopctx,
const uint8_t * inputs[],
const size_t input_lengths[],
size_t input_count,
const struct sxhashalg * hashalg,
uint8_t * digest )

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

Hash several elements at different locations in memory with a previously created hash context(sxhash)

Parameters
[in]sxhashopctxPointer to the sxhash context.
[in]inputsArray of pointers to elements that will be hashed.
[in]input_lengthsArray of lengths of elements to be hashed.
[in]input_countNumber of elements to be hashed.
[in]hashalgHash algorithm to be used in sxhashalg format.
[out]digestBuffer of at least sx_hash_get_alg_digestsz(hashalg) bytes.
Returns
sxsymcrypt status code.