Skip to content

Commit

Permalink
[FIO fromtree] drivers: caam: disable CFG_CRYPTO_SM2_* when ECC CAAM …
Browse files Browse the repository at this point in the history
…driver is enabled

Disable CFG_CRYPTO_SM2_PKE and CFG_CRYPTO_SM2_KEP as ECC CAAM driver
does not support ECC encryption.
Disable CFG_CRYPTO_SM2_DSA as ECC CAAM driver does not support ECC SM2
signature.

This is a temporary fix until a proper software crypto fallback
is implemented.

Signed-off-by: Clement Faure <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
Acked-by: Etienne Carriere <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
(cherry picked from commit 3489781)
Signed-off-by: Ricardo Salveti <[email protected]>
  • Loading branch information
clementfaure authored and ricardosalveti committed Dec 11, 2023
1 parent 85b6c5a commit 2c32781
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/drivers/crypto/caam/crypto.mk
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,12 @@ $(call force, CFG_NXP_CAAM_ACIPHER_DRV, $(call cryphw-one-enabled, RSA ECC DH DS
$(call force, CFG_CRYPTO_DRV_MAC, $(call cryphw-one-enabled, HMAC CMAC))
CFG_CRYPTO_DRV_ACIPHER ?= $(CFG_NXP_CAAM_ACIPHER_DRV)

# Disable SM2 as it is not supported by the CAAM driver
ifeq ($(CFG_NXP_CAAM_ECC_DRV),y)
$(call force,CFG_CRYPTO_SM2_PKE,n)
$(call force,CFG_CRYPTO_SM2_KEP,n)
$(call force,CFG_CRYPTO_SM2_DSA,n)
endif

endif # CFG_CRYPTO_DRIVER
endif # CFG_NXP_CAAM

0 comments on commit 2c32781

Please sign in to comment.