adjust_legacy_crypto: add macros for CCM/GCM capabilities with key types
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
50333977c6
commit
bfa675fe48
1 changed files with 16 additions and 0 deletions
|
@ -224,6 +224,22 @@
|
||||||
#define MBEDTLS_BLOCK_CIPHER_C
|
#define MBEDTLS_BLOCK_CIPHER_C
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Helpers for GCM/CCM capabilities */
|
||||||
|
#if (defined(MBEDTLS_CIPHER_C) && defined(MBEDTLS_AES_C)) || \
|
||||||
|
(defined(MBEDTLS_BLOCK_CIPHER_C) && defined(MBEDTLS_BLOCK_CIPHER_CAN_AES))
|
||||||
|
#define MBEDTLS_CCM_GCM_CAN_AES
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (defined(MBEDTLS_CIPHER_C) && defined(MBEDTLS_ARIA_C)) || \
|
||||||
|
(defined(MBEDTLS_BLOCK_CIPHER_C) && defined(MBEDTLS_BLOCK_CIPHER_CAN_ARIA))
|
||||||
|
#define MBEDTLS_CCM_GCM_CAN_ARIA
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (defined(MBEDTLS_CIPHER_C) && defined(MBEDTLS_CAMELLIA_C)) || \
|
||||||
|
(defined(MBEDTLS_BLOCK_CIPHER_C) && defined(MBEDTLS_BLOCK_CIPHER_CAN_CAMELLIA))
|
||||||
|
#define MBEDTLS_CCM_GCM_CAN_CAMELLIA
|
||||||
|
#endif
|
||||||
|
|
||||||
/* MBEDTLS_ECP_LIGHT is auto-enabled by the following symbols:
|
/* MBEDTLS_ECP_LIGHT is auto-enabled by the following symbols:
|
||||||
* - MBEDTLS_ECP_C because now it consists of MBEDTLS_ECP_LIGHT plus functions
|
* - MBEDTLS_ECP_C because now it consists of MBEDTLS_ECP_LIGHT plus functions
|
||||||
* for curve arithmetic. As a consequence if MBEDTLS_ECP_C is required for
|
* for curve arithmetic. As a consequence if MBEDTLS_ECP_C is required for
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue