Files | |
file | riot_mbedtls_config.h |
Configuration options (set of defines) | |
Macros | |
#define | CONFIG_MBEDTLS_SELF_TEST 1 |
Enable the checkup functions (*_self_test). | |
#define | CONFIG_MBEDTLS_ENTROPY_C 1 |
Enable the platform-specific entropy code. | |
#define | CONFIG_MBEDTLS_SHA256_C 1 |
Enable the SHA-224 and SHA-256 cryptographic hash algorithms. | |
#define | CONFIG_MBEDTLS_SHA256_ALT 1 |
MBEDTLS__MODULE_NAME__ALT: Enable a macro to let mbed TLS use your alternate core implementation of a symmetric crypto, an arithmetic or hash module (e.g. | |
#define | CONFIG_MBEDTLS_THREADING_C 1 |
Enable the threading abstraction layer. | |
#define | CONFIG_MBEDTLS_THREADING_ALT 1 |
Provide your own alternate threading implementation. | |
#define | CONFIG_MBEDTLS_ENTROPY_HARDWARE_ALT 1 |
Enable this macro to let mbed TLS use your own implementation of a hardware entropy collector. | |
#define | CONFIG_MBEDTLS_NO_PLATFORM_ENTROPY 1 |
Do not use built-in platform entropy functions. | |
#define | CONFIG_MBEDTLS_ENTROPY_FORCE_SHA256 1 |
Force the entropy accumulator to use a SHA-256 accumulator instead of the default SHA-512 based one (if both are available). | |
#define CONFIG_MBEDTLS_ENTROPY_C 1 |
Enable the platform-specific entropy code.
Module: mbedtls/library/entropy.c Caller:
Requires: MBEDTLS_SHA512_C or MBEDTLS_SHA256_C
This module provides a generic entropy pool
Definition at line 66 of file riot_mbedtls_config.h.
#define CONFIG_MBEDTLS_ENTROPY_FORCE_SHA256 1 |
Force the entropy accumulator to use a SHA-256 accumulator instead of the default SHA-512 based one (if both are available).
Requires: MBEDTLS_SHA256_C
On 32-bit systems SHA-256 can be much faster than SHA-512. Use this option if you have performance concerns.
This option is only useful if both MBEDTLS_SHA256_C and MBEDTLS_SHA512_C are defined. Otherwise the available hash module is used.
Definition at line 194 of file riot_mbedtls_config.h.
#define CONFIG_MBEDTLS_ENTROPY_HARDWARE_ALT 1 |
Enable this macro to let mbed TLS use your own implementation of a hardware entropy collector.
Your function must be called mbedtls_hardware_poll(), have the same prototype as declared in entropy_poll.h, and accept NULL as first argument.
Enable to use your own hardware entropy collector.
Definition at line 165 of file riot_mbedtls_config.h.
#define CONFIG_MBEDTLS_NO_PLATFORM_ENTROPY 1 |
Do not use built-in platform entropy functions.
This is useful if your platform does not support standards like the /dev/urandom or Windows CryptoAPI.
Disable the built-in platform entropy functions.
Definition at line 177 of file riot_mbedtls_config.h.
#define CONFIG_MBEDTLS_SELF_TEST 1 |
Enable the checkup functions (*_self_test).
Definition at line 51 of file riot_mbedtls_config.h.
#define CONFIG_MBEDTLS_SHA256_ALT 1 |
MBEDTLS__MODULE_NAME__ALT: Enable a macro to let mbed TLS use your alternate core implementation of a symmetric crypto, an arithmetic or hash module (e.g.
platform specific assembly optimized implementations). Keep in mind that the function prototypes should remain the same.
This replaces the whole module. If you only want to replace one of the functions, use one of the MBEDTLS__FUNCTION_NAME__ALT flags.
Example: In case you enable MBEDTLS_SHA256_ALT, mbed TLS will no longer provide the "struct mbedtls_sha256_context" definition and omit the base function declarations and implementations. "sha256_alt.h" will be included from "sha256.h" to include the new function definitions.
Enable a macro to enable alternate implementation of the corresponding module.
Definition at line 112 of file riot_mbedtls_config.h.
#define CONFIG_MBEDTLS_SHA256_C 1 |
Enable the SHA-224 and SHA-256 cryptographic hash algorithms.
Module: mbedtls/library/sha256.c Caller: mbedtls/library/entropy.c mbedtls/library/md.c mbedtls/library/ssl_cli.c mbedtls/library/ssl_srv.c mbedtls/library/ssl_tls.c
This module adds support for SHA-224 and SHA-256. This module is required for the SSL/TLS 1.2 PRF function.
Definition at line 84 of file riot_mbedtls_config.h.
#define CONFIG_MBEDTLS_THREADING_ALT 1 |
Provide your own alternate threading implementation.
Requires: MBEDTLS_THREADING_C
This to allows your own alternate threading implementation.
Definition at line 147 of file riot_mbedtls_config.h.
#define CONFIG_MBEDTLS_THREADING_C 1 |
Enable the threading abstraction layer.
By default mbed TLS assumes it is used in a non-threaded environment or that contexts are not shared between threads. If you do intend to use contexts between threads, you will need to enable this layer to prevent race conditions. See also our Knowledge Base article about threading: https://tls.mbed.org/kb/development/thread-safety-and-multi-threading
This allows different threading implementations (self-implemented or provided).
You will have to enable either MBEDTLS_THREADING_ALT or MBEDTLS_THREADING_PTHREAD.
Enable this layer to allow use of mutexes within mbed TLS
Definition at line 136 of file riot_mbedtls_config.h.