summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/drivers/crypto/se050/core/sub.mk1
-rw-r--r--core/drivers/crypto/se050/crypto.mk7
2 files changed, 7 insertions, 1 deletions
diff --git a/core/drivers/crypto/se050/core/sub.mk b/core/drivers/crypto/se050/core/sub.mk
index 31503151..92ab585f 100644
--- a/core/drivers/crypto/se050/core/sub.mk
+++ b/core/drivers/crypto/se050/core/sub.mk
@@ -10,6 +10,7 @@ incdirs-y += include
srcs-y += scp03.c
srcs-y += storage.c
srcs-$(CFG_NXP_SE05X_RSA_DRV) += rsa.c
+srcs-$(CFG_NXP_SE05X_ECC_DRV) += ecc.c
srcs-$(CFG_NXP_SE05X_CTR_DRV) += ctr.c
srcs-$(CFG_NXP_SE05X_HUK_DRV) += huk.c
srcs-$(CFG_NXP_SE05X_RNG_DRV) += rng.c
diff --git a/core/drivers/crypto/se050/crypto.mk b/core/drivers/crypto/se050/crypto.mk
index 0dd3fd1d..9cd88651 100644
--- a/core/drivers/crypto/se050/crypto.mk
+++ b/core/drivers/crypto/se050/crypto.mk
@@ -42,7 +42,8 @@ se050-one-enabled = $(call cfg-one-enabled, \
$(foreach v,$(1), CFG_NXP_SE05X_$(v)_DRV))
# Asymmetric ciphers
CFG_NXP_SE05X_RSA_DRV ?= y
-$(call force,CFG_NXP_SE05X_ACIPHER_DRV,$(call se050-one-enabled,RSA))
+CFG_NXP_SE05X_ECC_DRV ?= y
+$(call force,CFG_NXP_SE05X_ACIPHER_DRV,$(call se050-one-enabled,RSA ECC))
# Asymmetric driver
ifeq ($(CFG_NXP_SE05X_ACIPHER_DRV),y)
@@ -56,6 +57,10 @@ $(call force,CFG_CRYPTO_DRV_RSA,y)
CFG_CRYPTO_RSASSA_NA1 ?= y
_CFG_CORE_LTC_RSA = n
endif
+# - ECC
+ifeq ($(CFG_NXP_SE05X_ECC_DRV),y)
+$(call force,CFG_CRYPTO_DRV_ECC,y)
+endif
# Symmetric ciphers
CFG_NXP_SE05X_CTR_DRV ?= y