modules: tfm: Split CRYPTO_ASYMMETRIC module into SIGN and ENCRYPT

The ASSYMETRIC crypto module has been split in two, for sign and
encrypt. Update Kconfig entries to match.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2021-11-10 16:43:53 +01:00 committed by Christopher Friedt
parent 81c5fb47a8
commit aaa38bfcb6
2 changed files with 14 additions and 5 deletions

View file

@ -23,7 +23,8 @@ set(TFM_CRYPTO_MODULES
CRYPTO_MAC_MODULE
CRYPTO_HASH_MODULE
CRYPTO_CIPHER_MODULE
CRYPTO_ASYMMETRIC_MODULE
CRYPTO_ASYM_ENCRYPT_MODULE
CRYPTO_ASYM_SIGN_MODULE
CRYPTO_KEY_DERIVATION_MODULE
)

View file

@ -54,12 +54,20 @@ config TFM_CRYPTO_CIPHER_MODULE_ENABLED
Unset this option if the functionality provided by 'crypto_cipher.c'
is not used.
config TFM_CRYPTO_ASYMMETRIC_MODULE_ENABLED
bool "Enable ASYMMETRIC crypto module"
config TFM_CRYPTO_ASYM_ENCRYPT_MODULE_ENABLED
bool "Enable ASYM ENCRYPT crypto module"
default y
help
Enables the ASYMMETRIC crypto module within the crypto partition.
Unset this option if the functionality provided by 'crypto_asymmetric.c'
Enables the ASYM ENCRYPT crypto module within the crypto partition.
Unset this option if the encrypt functionality provided by 'crypto_asymmetric.c'
is not used.
config TFM_CRYPTO_ASYM_SIGN_MODULE_ENABLED
bool "Enable ASYM SIGN crypto module"
default y
help
Enables the ASYM SIGN crypto module within the crypto partition.
Unset this option if the sign functionality provided by 'crypto_asymmetric.c'
is not used.
config TFM_CRYPTO_KEY_DERIVATION_MODULE_ENABLED