Skip to content

Commit 18b14e7

Browse files
tomi-fontkartben
authored andcommitted
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 <[email protected]>
1 parent 001d054 commit 18b14e7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

subsys/secure_storage/CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@ if(CONFIG_SECURE_STORAGE_PS_IMPLEMENTATION_CUSTOM)
3131
make_available(ps.h)
3232
endif()
3333

34-
if(CONFIG_SECURE_STORAGE_ITS_TRANSFORM_IMPLEMENTATION_CUSTOM)
35-
make_available(its/transform.h)
36-
endif()
34+
if(CONFIG_SECURE_STORAGE_ITS_TRANSFORM_MODULE)
35+
36+
if(NOT CONFIG_SECURE_STORAGE_ITS_TRANSFORM_IMPLEMENTATION_AEAD)
37+
make_available(its/transform.h)
38+
endif()
39+
40+
endif() # CONFIG_SECURE_STORAGE_ITS_TRANSFORM_MODULE
3741

3842
if(CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_CUSTOM)
3943
make_available(its/store.h)

0 commit comments

Comments
 (0)