check_config: add checks for MBEDTLS_BLOCK_CIPHER_NO_DECRYPT
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
e367e47be0
commit
b799eea123
1 changed files with 4 additions and 3 deletions
|
@ -184,11 +184,12 @@
|
|||
#endif
|
||||
|
||||
#if defined(MBEDTLS_BLOCK_CIPHER_NO_DECRYPT) && \
|
||||
(!defined(MBEDTLS_PSA_CRYPTO_CONFIG) || \
|
||||
(defined(MBEDTLS_CIPHER_MODE_CBC) || \
|
||||
defined(MBEDTLS_CIPHER_MODE_XTS) || \
|
||||
defined(MBEDTLS_NIST_KW_C)))
|
||||
#error "MBEDTLS_BLOCK_CIPHER_NO_DECRYPT defined, but not all prerequisites"
|
||||
defined(MBEDTLS_DES_C) || \
|
||||
defined(MBEDTLS_NIST_KW_C))
|
||||
#error "MBEDTLS_BLOCK_CIPHER_NO_DECRYPT and MBEDTLS_CIPHER_MODE_CBC/MBEDTLS_CIPHER_MODE_XTS/MBEDTLS_DES_C/MBEDTLS_NIST_KW_C \
|
||||
cannot be defined simultaneously"
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_ECDH_C) && !defined(MBEDTLS_ECP_C)
|
||||
|
|
Loading…
Reference in a new issue