Skip to content

Commit c9f608c

Browse files
PrabhjotKhuranaIntelherbertx
authored andcommitted
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 <[email protected]> Co-developed-by: Daniele Alessandrelli <[email protected]> Signed-off-by: Daniele Alessandrelli <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent cadddc8 commit c9f608c

File tree

4 files changed

+1042
-0
lines changed

4 files changed

+1042
-0
lines changed

MAINTAINERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9518,6 +9518,10 @@ M: Prabhjot Khurana <[email protected]>
95189518
M: Mark Gross <[email protected]>
95199519
S: Maintained
95209520
F: Documentation/devicetree/bindings/crypto/intel,keembay-ocs-ecc.yaml
9521+
F: drivers/crypto/keembay/Kconfig
9522+
F: drivers/crypto/keembay/Makefile
9523+
F: drivers/crypto/keembay/keembay-ocs-ecc.c
9524+
F: drivers/crypto/keembay/ocs-ecc-curve-defs.h
95219525

95229526
INTEL KEEM BAY OCS HCU CRYPTO DRIVER
95239527
M: Daniele Alessandrelli <[email protected]>

drivers/crypto/keembay/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,25 @@ config CRYPTO_DEV_KEEMBAY_OCS_AES_SM4_CTS
3939

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

42+
config CRYPTO_DEV_KEEMBAY_OCS_ECC
43+
tristate "Support for Intel Keem Bay OCS ECC HW acceleration"
44+
depends on ARCH_KEEMBAY || COMPILE_TEST
45+
depends on OF || COMPILE_TEST
46+
depends on HAS_IOMEM
47+
select CRYPTO_ECDH
48+
select CRYPTO_ENGINE
49+
help
50+
Support for Intel Keem Bay Offload and Crypto Subsystem (OCS)
51+
Elliptic Curve Cryptography (ECC) hardware acceleration for use with
52+
Crypto API.
53+
54+
Provides OCS acceleration for ECDH-256 and ECDH-384.
55+
56+
Say Y or M if you are compiling for the Intel Keem Bay SoC. The
57+
module will be called keembay-ocs-ecc.
58+
59+
If unsure, say N.
60+
4261
config CRYPTO_DEV_KEEMBAY_OCS_HCU
4362
tristate "Support for Intel Keem Bay OCS HCU HW acceleration"
4463
select CRYPTO_HASH

drivers/crypto/keembay/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
obj-$(CONFIG_CRYPTO_DEV_KEEMBAY_OCS_AES_SM4) += keembay-ocs-aes.o
55
keembay-ocs-aes-objs := keembay-ocs-aes-core.o ocs-aes.o
66

7+
obj-$(CONFIG_CRYPTO_DEV_KEEMBAY_OCS_ECC) += keembay-ocs-ecc.o
8+
79
obj-$(CONFIG_CRYPTO_DEV_KEEMBAY_OCS_HCU) += keembay-ocs-hcu.o
810
keembay-ocs-hcu-objs := keembay-ocs-hcu-core.o ocs-hcu.o

0 commit comments

Comments
 (0)