forked from Minki/linux
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: Prabhjot Khurana <prabhjot.khurana@intel.com> Co-developed-by: Daniele Alessandrelli <daniele.alessandrelli@intel.com> Signed-off-by: Daniele Alessandrelli <daniele.alessandrelli@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
cadddc89a0
commit
c9f608c380
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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
drivers/crypto/keembay/keembay-ocs-ecc.c
Normal file
1017
drivers/crypto/keembay/keembay-ocs-ecc.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user