![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_hash_finish | ( | cracen_hash_operation_t * | operation, |
| uint8_t * | hash, | ||
| size_t | hash_size, | ||
| size_t * | hash_length ) |
#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_hash.h>
Finish a hash operation.
| [in,out] | operation | Hash operation context. |
| [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_BAD_STATE | The operation is not in a valid state. |
| PSA_ERROR_BUFFER_TOO_SMALL | The hash buffer is too small. |