#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_hash.h>
Compute the hash of a message.
- Parameters
-
| [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. |
- Return values
-
| 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. |