Loading...
Searching...
No Matches
psa_cryptocell_310_hashes_common.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include "psa/crypto.h"
25#include "crys_hash.h"
26
35 CRYS_HASH_OperationMode_t mode);
36
46 const uint8_t *input,
47 size_t input_length);
48
59 uint8_t *hash,
60 size_t hash_size,
61 size_t *hash_length);
62
63#ifdef __cplusplus
64}
65#endif
66
Function declarations for PSA Crypto.
int32_t psa_status_t
Status code type used for all PSA Certified APIs.
Definition error.h:37
psa_status_t cryptocell_310_common_hash_setup(CRYS_HASHUserContext_t *ctx, CRYS_HASH_OperationMode_t mode)
Common hash setup function.
psa_status_t cryptocell_310_common_hash_finish(CRYS_HASHUserContext_t *ctx, uint8_t *hash, size_t hash_size, size_t *hash_length)
Common hash finish function.
psa_status_t cryptocell_310_common_hash_update(CRYS_HASHUserContext_t *ctx, const uint8_t *input, size_t input_length)
Common hash update function.