zephyr/samples/tfm_integration/psa_crypto/Kconfig
Rajkumar Kanagaraj 682dbae203 samples: tfm: Re-commit psa_crypto sample
Adds a refactored version of the psa_crypto sample back,
which was removed as part of the update to TF-M 1.7.0
due to unresolvable (at the time) issues with use of
MbedTLS instances on the S and NS sides.

This sample takes advantage of changes to MbedTLS and
TF-M that were introduced after the TF-M 1.7.0 and MbedTLS
3.3 release, and cherry-picked in Zephyr, allowing for
improved linking of MbedTLS in secure and non-secure
images. PSA API calls on the non-secure side can now be
correctly routed to the secure partition, while X.509
and TLS calls remain on the non-secure/Zephyr side.

Signed-off-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@linaro.org>
2023-05-26 14:00:18 -04:00

49 lines
1.1 KiB
Text

# Private config options for PSA Crypto application
# Copyright (c) 2023 Linaro
# SPDX-License-Identifier: Apache-2.0
mainmenu "PSA Crypto sample application"
menu "Application configuration"
module = PSA
module-str = psa
source "subsys/logging/Kconfig.template.log_config"
endmenu
config PSA_SHELL
bool "The 'psa' shell command"
depends on SHELL
help
Enabling this option will make the 'psa' shell command available.
config PSA_IMPORT_KEY
bool "Support for importing private key data"
help
Enable support for importing a pre-generated or randomly generated
private key using PSA APIs and PRIVATE_KEY_STATIC or
PRIVATE_KEY_RANDOM.
choice
prompt "Private Key"
default PRIVATE_KEY_RANDOM
config PRIVATE_KEY_STATIC
bool "Static"
depends on PSA_IMPORT_KEY
help
A static key value will be used for the elliptic curve 'secp256r1'
private key.
config PRIVATE_KEY_RANDOM
bool "Random"
depends on PSA_IMPORT_KEY
help
A randomly generated value will be used for the elliptic curve
'secp256r1' private key.
endchoice
source "Kconfig.zephyr"