From a4c9821aa11bba5d1e1586e5ac1e174446eed592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vidar=20Lilleb=C3=B8?= Date: Fri, 12 Jan 2024 16:44:46 +0100 Subject: [PATCH] nrf_security: Enable key management driver for Brainpool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enables the CC3XX key management driver to support ECDH for Brainpool. Signed-off-by: Vidar Lillebø --- subsys/nrf_security/configs/psa_crypto_config.h.template | 2 +- subsys/nrf_security/src/drivers/nrf_cc3xx/Kconfig | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/subsys/nrf_security/configs/psa_crypto_config.h.template b/subsys/nrf_security/configs/psa_crypto_config.h.template index 974c726337ab..df80aa65f906 100644 --- a/subsys/nrf_security/configs/psa_crypto_config.h.template +++ b/subsys/nrf_security/configs/psa_crypto_config.h.template @@ -95,7 +95,7 @@ #cmakedefine PSA_WANT_ALG_RSA_OAEP @PSA_WANT_ALG_RSA_OAEP@ #cmakedefine PSA_WANT_ALG_RSA_PKCS1V15_CRYPT @PSA_WANT_ALG_RSA_PKCS1V15_CRYPT@ -/* Assymetric signature */ +/* Asymmetric signature */ #cmakedefine PSA_WANT_ALG_DETERMINISTIC_ECDSA @PSA_WANT_ALG_DETERMINISTIC_ECDSA@ #cmakedefine PSA_WANT_ALG_ECDSA @PSA_WANT_ALG_ECDSA@ #cmakedefine PSA_WANT_ALG_ECDSA_ANY @PSA_WANT_ALG_ECDSA_ANY@ diff --git a/subsys/nrf_security/src/drivers/nrf_cc3xx/Kconfig b/subsys/nrf_security/src/drivers/nrf_cc3xx/Kconfig index 1937d85a232a..66b69585809d 100644 --- a/subsys/nrf_security/src/drivers/nrf_cc3xx/Kconfig +++ b/subsys/nrf_security/src/drivers/nrf_cc3xx/Kconfig @@ -154,12 +154,19 @@ config PSA_NEED_CC3XX_ECDH_MONTGOMERY_255 depends on PSA_WANT_ECC_MONTGOMERY_255 depends on PSA_USE_CC3XX_KEY_AGREEMENT_DRIVER +config PSA_NEED_CC3XX_ECDH_BRAINPOOL_P_R1_256 + bool + default y + depends on PSA_WANT_ALG_ECDH + depends on PSA_WANT_ECC_BRAINPOOL_P_R1_256 + depends on PSA_USE_CC3XX_KEY_AGREEMENT_DRIVER + config PSA_NEED_CC3XX_KEY_AGREEMENT_DRIVER bool default y depends on PSA_NEED_CC3XX_ECDH_SECP_R1_224 || PSA_NEED_CC3XX_ECDH_SECP_R1_256 || \ PSA_NEED_CC3XX_ECDH_SECP_R1_384 || \ - PSA_NEED_CC3XX_ECDH_MONTGOMERY_255 + PSA_NEED_CC3XX_ECDH_MONTGOMERY_255 || PSA_NEED_CC3XX_ECDH_BRAINPOOL_P_R1_256 # CC3xx Signature Driver