nrfxlib API 2.7.99
Loading...
Searching...
No Matches
cc3xx_psa_hash.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef CC3XX_PSA_HASH_H
9#define CC3XX_PSA_HASH_H
10
19#include "psa/crypto.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
36 psa_algorithm_t alg);
46psa_status_t cc3xx_hash_clone(const cc3xx_hash_operation_t *source_operation,
47 cc3xx_hash_operation_t *target_operation);
59 const uint8_t *input, size_t input_length);
71psa_status_t cc3xx_hash_finish(cc3xx_hash_operation_t *operation, uint8_t *hash,
72 size_t hash_size, size_t *hash_length);
82
96psa_status_t cc3xx_hash_compute(psa_algorithm_t alg, const uint8_t *input,
97 size_t input_length, uint8_t *hash,
98 size_t hash_size, size_t *hash_length);
99#ifdef __cplusplus
100}
101#endif
102#endif /* CC3XX_PSA_HASH_H */
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