Loading...
Searching...
No Matches
crypto_includes.h
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
19#ifndef PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H
20#define PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include "kernel_defines.h"
27
28#if IS_USED(MODULE_CRYPTO)
29#include "crypto/psa/riot_ciphers.h"
30#endif
31
32#if IS_USED(MODULE_PSA_RIOT_HASHES_HMAC_SHA256) || IS_USED(MODULE_PSA_RIOT_HASHES_MD5) || \
33 IS_USED(MODULE_PSA_RIOT_HASHES_SHA_1) || IS_USED(MODULE_PSA_RIOT_HASHES_SHA_224) || \
34 IS_USED(MODULE_PSA_RIOT_HASHES_SHA_256) || IS_USED(MODULE_PSA_RIOT_HASHES_SHA_384) || \
35 IS_USED(MODULE_PSA_RIOT_HASHES_SHA_512) || IS_USED(MODULE_PSA_RIOT_HASHES_SHA_512_224) || \
36 IS_USED(MODULE_PSA_RIOT_HASHES_SHA_512_256) || IS_USED(MODULE_PSA_RIOT_HASHES_SHA3_256) || \
37 IS_USED(MODULE_PSA_RIOT_HASHES_SHA3_384) || IS_USED(MODULE_PSA_RIOT_HASHES_SHA3_512)
38#include "hashes/psa/riot_hashes.h"
39#endif
40
41#if IS_USED(MODULE_PERIPH_CIPHER_AES_128_CBC)
42#include "psa_periph_aes_ctx.h"
43#endif
44
45#if IS_USED(MODULE_PERIPH_HASH_SHA_1) || IS_USED(MODULE_PERIPH_HASH_SHA_224) || \
46 IS_USED(MODULE_PERIPH_HASH_SHA_256) || IS_USED(MODULE_PERIPH_HASH_SHA_384) || \
47 IS_USED(MODULE_PERIPH_HASH_SHA_512) || IS_USED(MODULE_PERIPH_HASH_SHA_512_224) || \
48 IS_USED(MODULE_PERIPH_HASH_SHA_512_256)
50#endif
51
52#if IS_USED(MODULE_PSA_SECURE_ELEMENT_ATECCX08A)
53#include "atca_params.h"
54#endif
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* PSA_CRYPTO_PSA_CRYPTO_INCLUDES_H */
Default configuration for Microchip CryptoAuth devices.
Common macros and compiler attributes/pragmas configuration.
CryptoCell 310 driver specific AES contexts.
CryptoCell 310 driver specific hash contexts.