Skip to content

Commit

Permalink
nrf_security: Enable key management driver for Brainpool
Browse files Browse the repository at this point in the history
Enables the CC3XX key management driver to support ECDH for Brainpool.

Signed-off-by: Vidar Lillebø <[email protected]>
  • Loading branch information
vili-nordic authored and rlubos committed Jan 17, 2024
1 parent 28d0a64 commit a4c9821
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion subsys/nrf_security/configs/psa_crypto_config.h.template
Original file line number Diff line number Diff line change
Expand Up @@ -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@
Expand Down
9 changes: 8 additions & 1 deletion subsys/nrf_security/src/drivers/nrf_cc3xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a4c9821

Please sign in to comment.