28 #ifdef TFM_CRYPTO_HASH_MODULE_DISABLED
36 if ((out_vec[0].len !=
sizeof(uint32_t)) ||
42 uint32_t *handle_out = out_vec[0].
base;
74 #ifdef TFM_CRYPTO_HASH_MODULE_DISABLED
83 (out_vec[0].len !=
sizeof(uint32_t))) {
88 uint32_t *handle_out = out_vec[0].
base;
89 const uint8_t *input = in_vec[1].
base;
90 size_t input_length = in_vec[1].
len;
119 #ifdef TFM_CRYPTO_HASH_MODULE_DISABLED
128 (out_vec[0].len !=
sizeof(uint32_t))) {
133 uint32_t *handle_out = out_vec[0].
base;
134 uint8_t *hash = out_vec[1].
base;
135 size_t hash_size = out_vec[1].
len;
146 (
void **)&operation);
169 #ifdef TFM_CRYPTO_HASH_MODULE_DISABLED
178 (out_vec[0].len !=
sizeof(uint32_t))) {
183 uint32_t *handle_out = out_vec[0].
base;
184 const uint8_t *hash = in_vec[1].
base;
185 size_t hash_length = in_vec[1].
len;
193 (
void **)&operation);
216 #ifdef TFM_CRYPTO_HASH_MODULE_DISABLED
225 (out_vec[0].len !=
sizeof(uint32_t))) {
230 uint32_t *handle_out = out_vec[0].
base;
238 (
void **)&operation);
262 #ifdef TFM_CRYPTO_HASH_MODULE_DISABLED
272 (out_vec[0].len !=
sizeof(uint32_t))) {
277 uint32_t *target_handle = out_vec[0].
base;
282 (
void **)&source_operation);
290 (
void **)&target_operation);
311 #ifdef TFM_CRYPTO_HASH_MODULE_DISABLED
323 const uint8_t *input = in_vec[1].
base;
324 size_t input_length = in_vec[1].
len;
325 uint8_t *hash = out_vec[0].
base;
326 size_t hash_size = out_vec[0].
len;
340 #ifdef TFM_CRYPTO_HASH_MODULE_DISABLED
352 const uint8_t *input = in_vec[1].
base;
353 size_t input_length = in_vec[1].
len;
354 const uint8_t *hash = in_vec[2].
base;
355 size_t hash_length = in_vec[2].
len;
Structure used to pack non-pointer types in a call.
psa_status_t tfm_crypto_hash_abort(psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
psa_status_t tfm_crypto_operation_alloc(enum tfm_crypto_operation_type type, uint32_t *handle, void **ctx)
Allocate an operation context in the backend.
psa_status_t tfm_crypto_hash_verify(psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
psa_status_t tfm_crypto_hash_compute(psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
psa_status_t tfm_crypto_hash_finish(psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
psa_status_t tfm_crypto_hash_update(psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
psa_status_t tfm_crypto_operation_release(uint32_t *handle)
Release an operation context in the backend.
uint32_t psa_algorithm_t
Encoding of a cryptographic algorithm.
psa_status_t tfm_crypto_hash_compare(psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
#define CRYPTO_IN_OUT_LEN_VALIDATE(in_len, in_min, in_max, out_len, out_min, out_max)
#define PSA_ERROR_PROGRAMMER_ERROR
psa_status_t tfm_crypto_hash_clone(psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
#define PSA_ERROR_NOT_SUPPORTED
psa_status_t tfm_crypto_hash_setup(psa_invec in_vec[], size_t in_len, psa_outvec out_vec[], size_t out_len)
psa_status_t tfm_crypto_operation_lookup(enum tfm_crypto_operation_type type, uint32_t handle, void **ctx)
Look up an operation context in the backend for the corresponding frontend operation.
int32_t psa_status_t
Function return status.