From 3955d8bdb440591bad3a0ff83fa77fdefbf4f40e Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Fri, 22 Nov 2024 16:34:57 +0100 Subject: [PATCH] tf-psa-crypto: cmake: Use TF-PSA-Crypto config.py Signed-off-by: Ronald Cron --- tf-psa-crypto/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tf-psa-crypto/CMakeLists.txt b/tf-psa-crypto/CMakeLists.txt index bbc191ffa3..419cd80f21 100644 --- a/tf-psa-crypto/CMakeLists.txt +++ b/tf-psa-crypto/CMakeLists.txt @@ -150,11 +150,17 @@ else() set(TF_PSA_CRYPTO_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE}) endif() endif() -if(TF_PSA_CRYPTO_PYTHON_EXECUTABLE) +if(TF_PSA_CRYPTO_PYTHON_EXECUTABLE) # If 128-bit keys are configured for CTR_DRBG, display an appropriate warning - execute_process(COMMAND ${TF_PSA_CRYPTO_PYTHON_EXECUTABLE} ${MBEDTLS_DIR}/scripts/config.py -f ${MBEDTLS_DIR}/include/mbedtls/mbedtls_config.h get MBEDTLS_CTR_DRBG_USE_128_BIT_KEY - RESULT_VARIABLE result) + execute_process( + COMMAND + ${TF_PSA_CRYPTO_PYTHON_EXECUTABLE} ${TF_PSA_CRYPTO_DIR}/scripts/config.py + -f ${TF_PSA_CRYPTO_DIR}/include/psa/crypto_config.h + get MBEDTLS_CTR_DRBG_USE_128_BIT_KEY + RESULT_VARIABLE + result + ) if(${result} EQUAL 0) message(WARNING ${CTR_DRBG_128_BIT_KEY_WARNING}) endif()