![]() |
nRF Connect SDK API 3.3.99
|
| int cracen_hash_all_inputs | ( | 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, managing hardware reservation internally.
Convenience wrapper that reserves the cryptomaster hardware, hashes all inputs using cracen_hash_all_inputs_with_context, and releases the hardware. Must only be used when a single hardware reservation is needed for the entire call, do not use if the caller needs to hold the hardware across multiple operations. This operation should never be used more than once.
| [in] | inputs | Array of pointers to elements that will be hashed. |
| [in] | input_lengths | Array of lengths of elements to be hashed. |
| [in] | input_count | Number of elements to be hashed. |
| [in] | hashalg | Hash algorithm to be used in sxhashalg format. |
| [out] | digest | Buffer of at least sx_hash_get_alg_digestsz(hashalg) bytes. |