Skip to content

Commit 01bd0cb

Browse files
committed
nrf_security: Avoid adding Cracen ctr_drbg for tests
Don't add the file ctr_drbg.c when you build the tests. While testing a modified version of this file is used which implements the same symbols so this file cannot be included. Signed-off-by: Georgios Vasilakis <[email protected]>
1 parent 8c1c6f1 commit 01bd0cb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

subsys/nrf_security/src/drivers/cracen/cracenpsa/cracenpsa.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ list(APPEND cracen_driver_sources
2121
# Note: We always need to have cipher.c and ctr_drbg.c since it
2222
# is used directly by many Cracen drivers.
2323
${CMAKE_CURRENT_LIST_DIR}/src/cipher.c
24-
${CMAKE_CURRENT_LIST_DIR}/src/ctr_drbg.c
2524
${CMAKE_CURRENT_LIST_DIR}/src/prng_pool.c
2625
)
2726

27+
if(NOT CONFIG_PSA_CRYPTO_DRIVER_ALG_PRNG_TEST)
28+
list(APPEND cracen_driver_sources
29+
${CMAKE_CURRENT_LIST_DIR}/src/ctr_drbg.c
30+
)
31+
endif()
32+
2833
if(CONFIG_CRACEN_IKG)
2934
list(APPEND cracen_driver_sources
3035
${CMAKE_CURRENT_LIST_DIR}/src/ikg_signature.c

0 commit comments

Comments
 (0)