8#ifndef CC3XX_PSA_HASH_H
9#define CC3XX_PSA_HASH_H
19#include "psa/crypto.h"
59 const uint8_t *input,
size_t input_length);
72 size_t hash_size,
size_t *hash_length);
97 size_t input_length, uint8_t *hash,
98 size_t hash_size,
size_t *hash_length);
psa_status_t cc3xx_hash_finish(cc3xx_hash_operation_t *operation, uint8_t *hash, size_t hash_size, size_t *hash_length)
Finish an hash operation and produce the hash output.
psa_status_t cc3xx_hash_setup(cc3xx_hash_operation_t *operation, psa_algorithm_t alg)
Set up an operation object for hashing with an algorithm.
psa_status_t cc3xx_hash_abort(cc3xx_hash_operation_t *operation)
Abort an hash operation.
psa_status_t cc3xx_hash_update(cc3xx_hash_operation_t *operation, const uint8_t *input, size_t input_length)
Updates an hash operation with some new input data.
psa_status_t cc3xx_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)
Performs hashing of the input in a single call.
psa_status_t cc3xx_hash_clone(const cc3xx_hash_operation_t *source_operation, cc3xx_hash_operation_t *target_operation)
Clone an operation object.
Definition cc3xx_crypto_primitives_private.h:14