Loading...
Searching...
No Matches
psa_periph_hashes_ctx.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_PERIPH_HASHES_CTX_H
21#define PSA_PERIPH_HASHES_CTX_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include <stdlib.h>
28#include "kernel_defines.h"
29#include "crys_hash.h"
30
31#if IS_USED(MODULE_PERIPH_HASH_SHA_1) || DOXYGEN
35typedef CRYS_HASHUserContext_t psa_hashes_sha1_ctx_t;
36#endif
37
38#if IS_USED(MODULE_PERIPH_HASH_SHA_224) || DOXYGEN
42typedef CRYS_HASHUserContext_t psa_hashes_sha224_ctx_t;
43#endif
44
45#if IS_USED(MODULE_PERIPH_HASH_SHA_256) || DOXYGEN
49typedef CRYS_HASHUserContext_t psa_hashes_sha256_ctx_t;
50#endif
51
52#if IS_USED(MODULE_PERIPH_HASH_SHA_512) || DOXYGEN
56typedef CRYS_HASHUserContext_t psa_hashes_sha512_ctx_t;
57#endif
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif /* PSA_PERIPH_HASHES_CTX_H */
Common macros and compiler attributes/pragmas configuration.
CRYS_HASHUserContext_t psa_hashes_sha224_ctx_t
Map driver specific SHA224 context to PSA context.
CRYS_HASHUserContext_t psa_hashes_sha256_ctx_t
Map driver specific SHA256 context to PSA context.
CRYS_HASHUserContext_t psa_hashes_sha512_ctx_t
Map driver specific SHA512 context to PSA context.
CRYS_HASHUserContext_t psa_hashes_sha1_ctx_t
Map driver specific SHA1 context to PSA context.