![]() |
nRF Connect SDK API 3.4.99
|
| psa_status_t cracen_hash_compute | ( | psa_algorithm_t | alg, |
| const uint8_t * | input, | ||
| size_t | input_length, | ||
| uint8_t * | hash, | ||
| size_t | hash_size, | ||
| size_t * | hash_length ) |
#include <cracen_psa_hash.h>
Compute the hash of a message.
| [in] | alg | Hash algorithm. |
| [in] | input | Message to hash. |
| [in] | input_length | Length of the message in bytes. |
| [out] | hash | Buffer to store the hash. |
| [in] | hash_size | Size of the hash buffer in bytes. |
| [out] | hash_length | Length of the generated hash in bytes. |
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_NOT_SUPPORTED | The algorithm is not supported. |
| PSA_ERROR_BUFFER_TOO_SMALL | The hash buffer is too small. |