crypto_includes.h
1 /*
2  * SPDX-FileCopyrightText: 2021 HAW Hamburg
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #include "kernel_defines.h"
23 
24 #if IS_USED(MODULE_CRYPTO)
25 #include "crypto/psa/riot_ciphers.h"
26 #endif
27 
28 #if IS_USED(MODULE_PSA_RIOT_HASHES_HMAC_SHA256) || IS_USED(MODULE_PSA_RIOT_HASHES_MD5) || \
29  IS_USED(MODULE_PSA_RIOT_HASHES_SHA_1) || IS_USED(MODULE_PSA_RIOT_HASHES_SHA_224) || \
30  IS_USED(MODULE_PSA_RIOT_HASHES_SHA_256) || IS_USED(MODULE_PSA_RIOT_HASHES_SHA_384) || \
31  IS_USED(MODULE_PSA_RIOT_HASHES_SHA_512) || IS_USED(MODULE_PSA_RIOT_HASHES_SHA_512_224) || \
32  IS_USED(MODULE_PSA_RIOT_HASHES_SHA_512_256) || IS_USED(MODULE_PSA_RIOT_HASHES_SHA3_256) || \
33  IS_USED(MODULE_PSA_RIOT_HASHES_SHA3_384) || IS_USED(MODULE_PSA_RIOT_HASHES_SHA3_512)
34 #include "hashes/psa/riot_hashes.h"
35 #endif
36 
37 #if IS_USED(MODULE_PERIPH_CIPHER_AES_128_CBC)
38 #include "psa_periph_aes_ctx.h"
39 #endif
40 
41 #if IS_USED(MODULE_PERIPH_HASH_SHA_1) || IS_USED(MODULE_PERIPH_HASH_SHA_224) || \
42  IS_USED(MODULE_PERIPH_HASH_SHA_256) || IS_USED(MODULE_PERIPH_HASH_SHA_384) || \
43  IS_USED(MODULE_PERIPH_HASH_SHA_512) || IS_USED(MODULE_PERIPH_HASH_SHA_512_224) || \
44  IS_USED(MODULE_PERIPH_HASH_SHA_512_256)
45 #include "psa_periph_hashes_ctx.h"
46 #endif
47 
48 #if IS_USED(MODULE_PSA_SECURE_ELEMENT_ATECCX08A)
49 #include "atca_params.h"
50 #endif
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
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.