13#ifndef CRACEN_PSA_HASH_H
14#define CRACEN_PSA_HASH_H
16#include <psa/crypto.h>
20#include <zephyr/sys/__assert.h>
21#include <nrf_security_mem_helpers.h>
38 uint8_t *hash,
size_t hash_size,
size_t *hash_length);
60 __ASSERT_NO_MSG(source_operation != NULL);
61 __ASSERT_NO_MSG(target_operation != NULL);
78 const size_t input_length);
102 __ASSERT_NO_MSG(operation != NULL);
int32_t psa_status_t
Definition error.h:26
#define PSA_SUCCESS
Definition error.h:29
psa_status_t cracen_hash_finish(cracen_hash_operation_t *operation, uint8_t *hash, size_t hash_size, size_t *hash_length)
Finish a hash operation.
static psa_status_t cracen_hash_abort(cracen_hash_operation_t *operation)
Abort a hash operation.
Definition cracen_psa_hash.h:100
psa_status_t cracen_hash_setup(cracen_hash_operation_t *operation, psa_algorithm_t alg)
Set up a hash operation.
psa_status_t cracen_hash_update(cracen_hash_operation_t *operation, const uint8_t *input, const size_t input_length)
Add a message fragment to a multi-part hash operation.
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)
Compute the hash of a message.
static psa_status_t cracen_hash_clone(const cracen_hash_operation_t *source_operation, cracen_hash_operation_t *target_operation)
Clone a hash operation.
Definition cracen_psa_hash.h:57
Definition cracen_psa_primitives.h:262