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:
parent
f149640021
commit
956aa00202
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue