From 1fbc7c11a30b9e3457582b8b0f958deada4e3bcb Mon Sep 17 00:00:00 2001 From: Markus Swarowsky Date: Wed, 16 Aug 2023 11:35:52 +0200 Subject: [PATCH 1/2] sample: ecdh: Add want random To generate keys CONFIG_PSA_WANT_GENERATE_RANDOM=y is needed Which works implicit when CC3XX is used but not oberon. To be complete adding it. Signed-off-by: Markus Swarowsky --- samples/crypto/ecdh/prj.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/crypto/ecdh/prj.conf b/samples/crypto/ecdh/prj.conf index fc969b376677..e44dfa6375a8 100644 --- a/samples/crypto/ecdh/prj.conf +++ b/samples/crypto/ecdh/prj.conf @@ -18,3 +18,6 @@ CONFIG_MBEDTLS_HEAP_SIZE=8192 CONFIG_PSA_WANT_ALG_ECDH=y CONFIG_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR=y CONFIG_PSA_WANT_ECC_SECP_R1_256=y + +# For key generation +CONFIG_PSA_WANT_GENERATE_RANDOM=y From 34805cad43a057cee22f3dbf20be96be1b3575a8 Mon Sep 17 00:00:00 2001 From: Markus Swarowsky Date: Wed, 16 Aug 2023 11:36:05 +0200 Subject: [PATCH 2/2] sample: ecdsa: Add want random To generate keys CONFIG_PSA_WANT_GENERATE_RANDOM=y is needed Which works implicit when CC3XX is used but not oberon. To be complete adding it. Signed-off-by: Markus Swarowsky --- samples/crypto/ecdsa/prj.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/crypto/ecdsa/prj.conf b/samples/crypto/ecdsa/prj.conf index 1e91ac191df6..1eb141e4fe62 100644 --- a/samples/crypto/ecdsa/prj.conf +++ b/samples/crypto/ecdsa/prj.conf @@ -19,3 +19,6 @@ CONFIG_PSA_WANT_ALG_ECDSA=y CONFIG_PSA_WANT_KEY_TYPE_ECC_KEY_PAIR=y CONFIG_PSA_WANT_ECC_SECP_R1_256=y CONFIG_PSA_WANT_ALG_SHA_256=y + +# For key generation +CONFIG_PSA_WANT_GENERATE_RANDOM=y