Skip to content

Commit 6266a10

Browse files
osaetherVge0rge
authored andcommitted
samples: crypto: Added snippet for crypto_service for target nrf54h20
Added snippet for crypto_service for targets nrf54h20dk_nrf54h20_cpuapp and nrf54h20dk_nrf54h20_cpurad and enabled the snippet for supported samples. Ref: NCSDK-NONE Signed-off-by: Ole Sæther <[email protected]>
1 parent 2becbc8 commit 6266a10

34 files changed

+435
-8
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ Kconfig* @tejlmand
239239
/snippets/nrf70-debug/ @krish2718 @sachinthegreen
240240
/snippets/nrf70-fw-patch-ext-flash/ @krish2718 @sachinthegreen
241241
/snippets/nordic-bt-rpc/ @ppryga-nordic
242+
/snippets/crypto_service/ @anhmolt @hakonfam @jonathannilsen
242243
/subsys/audio_module/ @nrfconnect/ncs-audio
243244
/subsys/bluetooth/ @alwa-nordic @jori-nordic @carlescufi @KAGA164
244245
/subsys/bluetooth/mesh/ @ludvigsj

samples/crypto/aes_cbc/sample.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ tests:
3939
integration_platforms:
4040
- nrf54l15pdk/nrf54l15/cpuapp
4141
- nrf54l15pdk/nrf54l15/cpuapp/ns
42+
sample.aes_cbc.cracen.crypto_service:
43+
sysbuild: true
44+
tags: introduction psa cracen sysbuild crypto
45+
platform_allow: >
46+
nrf54h20dk/nrf54h20/cpuapp
47+
harness: console
48+
extra_args:
49+
- SNIPPET=crypto_service
50+
harness_config:
51+
type: multi_line
52+
regex:
53+
- ".*Example finished successfully!.*"
54+
integration_platforms:
55+
- nrf54h20dk/nrf54h20/cpuapp
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# For nRF54h20 we need to always include the crypto_service snippet
8+
if (${NORMALIZED_BOARD_TARGET} STREQUAL "nrf54h20dk_nrf54h20_cpuapp")
9+
if(NOT crypto_service IN_LIST SNIPPET)
10+
set(SNIPPET crypto_service ${SNIPPET} CACHE STRING "" FORCE)
11+
endif()
12+
endif()

samples/crypto/aes_ccm/sample.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ tests:
3939
integration_platforms:
4040
- nrf54l15pdk/nrf54l15/cpuapp
4141
- nrf54l15pdk/nrf54l15/cpuapp/ns
42+
sample.aes_ccm.cracen.crypto_service:
43+
sysbuild: true
44+
tags: introduction psa cracen sysbuild crypto
45+
platform_allow: >
46+
nrf54h20dk/nrf54h20/cpuapp
47+
harness: console
48+
extra_args:
49+
- SNIPPET=crypto_service
50+
harness_config:
51+
type: multi_line
52+
regex:
53+
- ".*Example finished successfully!.*"
54+
integration_platforms:
55+
- nrf54h20dk/nrf54h20/cpuapp
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# For nRF54h20 we need to always include the crypto_service snippet
8+
if (${NORMALIZED_BOARD_TARGET} STREQUAL "nrf54h20dk_nrf54h20_cpuapp")
9+
if(NOT crypto_service IN_LIST SNIPPET)
10+
set(SNIPPET crypto_service ${SNIPPET} CACHE STRING "" FORCE)
11+
endif()
12+
endif()

samples/crypto/aes_ctr/sample.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ tests:
3939
integration_platforms:
4040
- nrf54l15pdk/nrf54l15/cpuapp
4141
- nrf54l15pdk/nrf54l15/cpuapp/ns
42+
sample.aes_ctr.cracen.crypto_service:
43+
sysbuild: true
44+
tags: introduction psa cracen sysbuild crypto
45+
platform_allow: >
46+
nrf54h20dk/nrf54h20/cpuapp
47+
harness: console
48+
extra_args:
49+
- SNIPPET=crypto_service
50+
harness_config:
51+
type: multi_line
52+
regex:
53+
- ".*Example finished successfully!.*"
54+
integration_platforms:
55+
- nrf54h20dk/nrf54h20/cpuapp
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# For nRF54h20 we need to always include the crypto_service snippet
8+
if (${NORMALIZED_BOARD_TARGET} STREQUAL "nrf54h20dk_nrf54h20_cpuapp")
9+
if(NOT crypto_service IN_LIST SNIPPET)
10+
set(SNIPPET crypto_service ${SNIPPET} CACHE STRING "" FORCE)
11+
endif()
12+
endif()

samples/crypto/aes_gcm/sample.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,17 @@ tests:
5050
integration_platforms:
5151
- nrf54l15pdk/nrf54l15/cpuapp
5252
- nrf54l15pdk/nrf54l15/cpuapp/ns
53+
sample.aes_gcm.cracen.crypto_service:
54+
sysbuild: true
55+
tags: introduction psa cracen sysbuild crypto
56+
platform_allow: >
57+
nrf54h20dk/nrf54h20/cpuapp
58+
harness: console
59+
extra_args:
60+
- SNIPPET=crypto_service
61+
harness_config:
62+
type: multi_line
63+
regex:
64+
- ".*Example finished successfully!.*"
65+
integration_platforms:
66+
- nrf54h20dk/nrf54h20/cpuapp
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# For nRF54h20 we need to always include the crypto_service snippet
8+
if (${NORMALIZED_BOARD_TARGET} STREQUAL "nrf54h20dk_nrf54h20_cpuapp")
9+
if(NOT crypto_service IN_LIST SNIPPET)
10+
set(SNIPPET crypto_service ${SNIPPET} CACHE STRING "" FORCE)
11+
endif()
12+
endif()

samples/crypto/chachapoly/sample.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,17 @@ tests:
4040
integration_platforms:
4141
- nrf54l15pdk/nrf54l15/cpuapp
4242
- nrf54l15pdk/nrf54l15/cpuapp/ns
43+
sample.chachapoly.cracen.crypto_service:
44+
sysbuild: true
45+
tags: introduction psa cracen sysbuild crypto
46+
platform_allow: >
47+
nrf54h20dk/nrf54h20/cpuapp
48+
harness: console
49+
extra_args:
50+
- SNIPPET=crypto_service
51+
harness_config:
52+
type: multi_line
53+
regex:
54+
- ".*Example finished successfully!.*"
55+
integration_platforms:
56+
- nrf54h20dk/nrf54h20/cpuapp

0 commit comments

Comments
 (0)