Skip to content

Commit 52f7519

Browse files
AntonZmagreg-fer
authored andcommitted
samples: crypto: Added KMU usage sample for nRF54L
Contains KMU usage template for the nRF54L devices. The sample is based on "persistent_key_usage". Ref: NCSDK-25126 Signed-off-by: Anton Zyma <[email protected]> Co-authored-by: Grzegorz Ferenc <[email protected]>
1 parent 819f7ba commit 52f7519

20 files changed

+1300
-2
lines changed

doc/nrf/links.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,14 +471,16 @@
471471

472472
.. _`HCI Events`: https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/softdevice_controller/doc/api.html#hci_events
473473

474+
.. _`nRF socket options`: https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/nrf_modem/doc/sockets.html
475+
476+
.. _`Managing keys`: https://docs.nordicsemi.com/bundle/ncs-latest/page/mcuboot/imgtool.html#managing_keys
477+
474478
.. _`nPM2100 Datasheet`: https://docs.nordicsemi.com/bundle/ps_npm2100/page/keyfeatures_html5.html
475479
.. _`nPM2100 EK product page`: https://docs.nordicsemi.com/bundle/ug_npm2100_ek/page/UG/nPM2100_EK/intro/intro.html
476480
.. _`nPM2100 EK User Guide`: https://docs.nordicsemi.com/bundle/ug_npm2100_ek/page/UG/nPM2100_EK/intro/intro.html
477481
.. _`Connect and use the nPM2100 EK`: https://docs.nordicsemi.com/bundle/ug_npm2100_ek/page/UG/nPM2100_EK/connect_ek/connect_ek.html
478482
.. _`Using the nPM2100 Fuel Gauge`: https://docs.nordicsemi.com/bundle/nan_048/page/APP/nan_048/intro.html
479483

480-
.. _`nRF socket options`: https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/nrf_modem/doc/sockets.html
481-
482484
.. _`Zigbee R22`: https://docs.nordicsemi.com/bundle/addon-zigbee-r22-latest/page/index.html
483485
.. _`Zigbee R23`: https://docs.nordicsemi.com/bundle/addon-zigbee-r23-latest/page/index.html
484486

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ Cellular samples
415415
Cryptography samples
416416
--------------------
417417

418+
* Added the :ref:`crypto_kmu_usage_nrf54l` sample.
418419

419420
* :ref:`crypto_aes_ctr` sample:
420421

doc/nrf/security/crypto/crypto_supported_features.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ The Kconfig options follow the ``CONFIG_PSA_WANT_*`` + ``CONFIG_PSA_USE_*`` conf
4848
On nRF54H Series devices, the ``CONFIG_PSA_WANT_*`` and ``CONFIG_PSA_USE_*`` feature selection scheme is not implemented and enabling any feature with these options will silently have no effect.
4949
The |ISE| implements a fixed set of features and algorithms that cannot be changed by the user.
5050

51+
.. _ug_crypto_supported_features_key_types:
5152

5253
Key types and key management
5354
============================
@@ -8997,6 +8998,8 @@ The options are grouped by Series and drivers available for the device Series, a
89978998
- Supported
89988999
- Supported
89999000

9001+
.. _ug_crypto_supported_features_ecc_key_pair:
9002+
90009003
ECC key pair operations
90019004
-----------------------
90029005

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
cmake_minimum_required(VERSION 3.20.0)
8+
9+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
10+
11+
project(kmu_usage)
12+
13+
target_sources(app PRIVATE
14+
src/main.c
15+
src/key_operations.c
16+
)

samples/crypto/kmu_usage_nrf54l/README.rst

Lines changed: 427 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
6+
CONFIG_MBEDTLS_ENABLE_HEAP=y
7+
CONFIG_MBEDTLS_HEAP_SIZE=8192
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
6+
CONFIG_MBEDTLS_ENABLE_HEAP=y
7+
CONFIG_MBEDTLS_HEAP_SIZE=8192
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
6+
CONFIG_MBEDTLS_ENABLE_HEAP=y
7+
CONFIG_MBEDTLS_HEAP_SIZE=8192
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
6+
CONFIG_MBEDTLS_ENABLE_HEAP=y
7+
CONFIG_MBEDTLS_HEAP_SIZE=8192
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
6+
CONFIG_MBEDTLS_ENABLE_HEAP=y
7+
CONFIG_MBEDTLS_HEAP_SIZE=8192

0 commit comments

Comments
 (0)