Loading...
Searching...
No Matches
psa_cryptocell_310_hashes_common.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
20#ifndef PSA_CRYPTOCELL_310_HASHES_COMMON_H
21#define PSA_CRYPTOCELL_310_HASHES_COMMON_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include "psa/crypto.h"
28#include "crys_hash.h"
29
38 CRYS_HASH_OperationMode_t mode);
39
49 const uint8_t *input,
50 size_t input_length);
51
62 uint8_t *hash,
63 size_t hash_size,
64 size_t *hash_length);
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* PSA_CRYPTOCELL_310_HASHES_COMMON_H */
Function declarations for PSA Crypto.
int32_t psa_status_t
Function return status.
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.