check_config: add checks for MBEDTLS_BLOCK_CIPHER_NO_DECRYPT with PSA

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
Yanray Wang 2023-11-01 19:15:16 +08:00
parent f149640021
commit 956aa00202

View File

@ -192,6 +192,16 @@
cannot be defined simultaneously"
#endif
#if defined(MBEDTLS_BLOCK_CIPHER_NO_DECRYPT) && \
defined(MBEDTLS_PSA_CRYPTO_CONFIG) && \
(defined(PSA_WANT_ALG_CBC_NO_PADDING) || \
defined(PSA_WANT_ALG_CBC_PKCS7) || \
defined(PSA_WANT_ALG_ECB_NO_PADDING) || \
defined(PSA_WANT_KEY_TYPE_DES))
#error "MBEDTLS_BLOCK_CIPHER_NO_DECRYPT, MBEDTLS_PSA_CRYPTO_CONFIG and \
PSA_WANT_ALG_CBC_NO_PADDING/PSA_WANT_ALG_CBC_PKCS7/PSA_WANT_ALG_ECB_NO_PADDING/PSA_WANT_KEY_TYPE_DES cannot be defined simultaneously"
#endif
#if defined(MBEDTLS_ECDH_C) && !defined(MBEDTLS_ECP_C)
#error "MBEDTLS_ECDH_C defined, but not all prerequisites"
#endif