Skip to content

Commit

Permalink
crypto: make X25519 & Ed25519 available for mbedtls configurations
Browse files Browse the repository at this point in the history
Make LTC implementations of X25519 & Ed25519 algorithms available when crypto
library is chosen to be mbedtls (which yet lacks support for these algorithms).

Signed-off-by: Sergiy Kibrik <[email protected]>
  • Loading branch information
sa-kib committed Aug 23, 2022
1 parent c54d157 commit a5d54fc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/crypto.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@ CFG_CRYPTO_ECC ?= y
CFG_CRYPTO_SM2_PKE ?= y
CFG_CRYPTO_SM2_DSA ?= y
CFG_CRYPTO_SM2_KEP ?= y
# X25519 and ed25519 are only supported by libtomcrypt
ifeq ($(CFG_CRYPTOLIB_NAME),tomcrypt)
CFG_CRYPTO_ED25519 ?= y
CFG_CRYPTO_X25519 ?= y
endif

# Authenticated encryption
CFG_CRYPTO_CCM ?= y
Expand Down Expand Up @@ -192,8 +189,8 @@ _CFG_CORE_LTC_SHA512_DESC := $(CFG_CRYPTO_DSA)
_CFG_CORE_LTC_XTS := $(CFG_CRYPTO_XTS)
_CFG_CORE_LTC_CCM := $(CFG_CRYPTO_CCM)
_CFG_CORE_LTC_AES_DESC := $(call cfg-one-enabled, CFG_CRYPTO_XTS CFG_CRYPTO_CCM)
$(call force,CFG_CRYPTO_X25519,n,not supported by mbedtls)
$(call force,CFG_CRYPTO_ED25519,n,not supported by mbedtls)
_CFG_CORE_LTC_X25519 := $(CFG_CRYPTO_X25519)
_CFG_CORE_LTC_ED25519 := $(CFG_CRYPTO_ED25519)
endif

###############################################################
Expand Down

0 comments on commit a5d54fc

Please sign in to comment.