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

◆ cracen_hash_finish()

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.

Parameters
[in,out]operationHash operation context.
[out]hashBuffer to store the hash.
[in]hash_sizeSize of the hash buffer in bytes.
[out]hash_lengthLength of the generated hash in bytes.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_BAD_STATEThe operation is not in a valid state.
PSA_ERROR_BUFFER_TOO_SMALLThe hash buffer is too small.