Commit c9f608c3 authored by Prabhjot Khurana's avatar Prabhjot Khurana Committed by Herbert Xu
Browse files

crypto: keembay-ocs-ecc - Add Keem Bay OCS ECC Driver



The Intel Keem Bay SoC can provide hardware acceleration of Elliptic
Curve Cryptography (ECC) by means of its Offload and Crypto Subsystem
(OCS).

Add the Keem Bay OCS ECC driver which leverages such hardware
capabilities to provide hardware-acceleration of ECDH-256 and ECDH-384.

Signed-off-by: default avatarPrabhjot Khurana <prabhjot.khurana@intel.com>
Co-developed-by: default avatarDaniele Alessandrelli <daniele.alessandrelli@intel.com>
Signed-off-by: default avatarDaniele Alessandrelli <daniele.alessandrelli@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent cadddc89
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -9518,6 +9518,10 @@ M: Prabhjot Khurana <prabhjot.khurana@intel.com>
M:	Mark Gross <mgross@linux.intel.com>
S:	Maintained
F:	Documentation/devicetree/bindings/crypto/intel,keembay-ocs-ecc.yaml
F:	drivers/crypto/keembay/Kconfig
F:	drivers/crypto/keembay/Makefile
F:	drivers/crypto/keembay/keembay-ocs-ecc.c
F:	drivers/crypto/keembay/ocs-ecc-curve-defs.h
INTEL KEEM BAY OCS HCU CRYPTO DRIVER
M:	Daniele Alessandrelli <daniele.alessandrelli@intel.com>
+19 −0
Original line number Diff line number Diff line
@@ -39,6 +39,25 @@ config CRYPTO_DEV_KEEMBAY_OCS_AES_SM4_CTS

	  Intel does not recommend use of CTS mode with AES/SM4.

config CRYPTO_DEV_KEEMBAY_OCS_ECC
	tristate "Support for Intel Keem Bay OCS ECC HW acceleration"
	depends on ARCH_KEEMBAY || COMPILE_TEST
	depends on OF || COMPILE_TEST
	depends on HAS_IOMEM
	select CRYPTO_ECDH
	select CRYPTO_ENGINE
	help
	  Support for Intel Keem Bay Offload and Crypto Subsystem (OCS)
	  Elliptic Curve Cryptography (ECC) hardware acceleration for use with
	  Crypto API.

	  Provides OCS acceleration for ECDH-256 and ECDH-384.

	  Say Y or M if you are compiling for the Intel Keem Bay SoC. The
	  module will be called keembay-ocs-ecc.

	  If unsure, say N.

config CRYPTO_DEV_KEEMBAY_OCS_HCU
	tristate "Support for Intel Keem Bay OCS HCU HW acceleration"
	select CRYPTO_HASH
+2 −0
Original line number Diff line number Diff line
@@ -4,5 +4,7 @@
obj-$(CONFIG_CRYPTO_DEV_KEEMBAY_OCS_AES_SM4) += keembay-ocs-aes.o
keembay-ocs-aes-objs := keembay-ocs-aes-core.o ocs-aes.o

obj-$(CONFIG_CRYPTO_DEV_KEEMBAY_OCS_ECC) += keembay-ocs-ecc.o

obj-$(CONFIG_CRYPTO_DEV_KEEMBAY_OCS_HCU) += keembay-ocs-hcu.o
keembay-ocs-hcu-objs := keembay-ocs-hcu-core.o ocs-hcu.o
+1017 −0

File added.

Preview size limit exceeded, changes collapsed.