From 18b14e7a2c309679fd7c69e9d953cfe83376754e Mon Sep 17 00:00:00 2001 From: Tomi Fontanilles Date: Thu, 22 May 2025 15:20:56 +0300 Subject: [PATCH] secure_storage: its: transform: improve expandability Instead of checking whether a custom implementation is present, check whether the AEAD one is used. This allows downstream users to expand the implementation choice with more options. Signed-off-by: Tomi Fontanilles --- subsys/secure_storage/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/subsys/secure_storage/CMakeLists.txt b/subsys/secure_storage/CMakeLists.txt index 4113ce72f16..2717994ebb0 100644 --- a/subsys/secure_storage/CMakeLists.txt +++ b/subsys/secure_storage/CMakeLists.txt @@ -31,9 +31,13 @@ if(CONFIG_SECURE_STORAGE_PS_IMPLEMENTATION_CUSTOM) make_available(ps.h) endif() -if(CONFIG_SECURE_STORAGE_ITS_TRANSFORM_IMPLEMENTATION_CUSTOM) - make_available(its/transform.h) -endif() +if(CONFIG_SECURE_STORAGE_ITS_TRANSFORM_MODULE) + + if(NOT CONFIG_SECURE_STORAGE_ITS_TRANSFORM_IMPLEMENTATION_AEAD) + make_available(its/transform.h) + endif() + +endif() # CONFIG_SECURE_STORAGE_ITS_TRANSFORM_MODULE if(CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_CUSTOM) make_available(its/store.h)