mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-12 05:09:57 +00:00
check_config: fix requirements for CTR_DRBG
The module now depends on either: - AES_C, which is the default and the preferred solution for backward compatibility - CRYPTO_C + KEY_TYPE_AES + ALG_ECB_NO_PADDINTG, which is the new solution when AES_C is not defined Signed-off-by: Valerio Setti <[email protected]>
This commit is contained in:
@@ -153,7 +153,9 @@
|
|||||||
#endif /* not all curves accelerated */
|
#endif /* not all curves accelerated */
|
||||||
#endif /* some curve accelerated */
|
#endif /* some curve accelerated */
|
||||||
|
|
||||||
#if defined(MBEDTLS_CTR_DRBG_C) && !defined(MBEDTLS_AES_C)
|
#if defined(MBEDTLS_CTR_DRBG_C) && !(defined(MBEDTLS_AES_C) || \
|
||||||
|
(defined(MBEDTLS_PSA_CRYPTO_C) && defined(PSA_WANT_KEY_TYPE_AES) && \
|
||||||
|
defined(PSA_WANT_ALG_ECB_NO_PADDING)))
|
||||||
#error "MBEDTLS_CTR_DRBG_C defined, but not all prerequisites"
|
#error "MBEDTLS_CTR_DRBG_C defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user