Commit 9739f5f9 authored by Christian Marangi's avatar Christian Marangi Committed by Herbert Xu
Browse files

crypto: eip93 - Add Inside Secure SafeXcel EIP-93 crypto engine support



Add support for the Inside Secure SafeXcel EIP-93 Crypto Engine used on
Mediatek MT7621 SoC and new Airoha SoC.

EIP-93 IP supports AES/DES/3DES ciphers in ECB/CBC and CTR modes as well as
authenc(HMAC(x), cipher(y)) using HMAC MD5, SHA1, SHA224 and SHA256.

EIP-93 provide regs to signal support for specific chipers and the
driver dynamically register only the supported one by the chip.

Signed-off-by: default avatarRichard van Schagen <vschagen@icloud.com>
Co-developed-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent bbbbd1d1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -11466,6 +11466,13 @@ L: linux-crypto@vger.kernel.org
S:	Maintained
F:	drivers/crypto/inside-secure/
INSIDE SECURE EIP93 CRYPTO DRIVER
M:	Christian Marangi <ansuelsmth@gmail.com>
L:	linux-crypto@vger.kernel.org
S:	Maintained
F:	Documentation/devicetree/bindings/crypto/inside-secure,safexcel-eip93.yaml
F:	drivers/crypto/inside-secure/eip93/
INTEGRITY MEASUREMENT ARCHITECTURE (IMA)
M:	Mimi Zohar <zohar@linux.ibm.com>
M:	Roberto Sassu <roberto.sassu@huawei.com>
+1 −0
Original line number Diff line number Diff line
@@ -855,5 +855,6 @@ config CRYPTO_DEV_SA2UL

source "drivers/crypto/aspeed/Kconfig"
source "drivers/crypto/starfive/Kconfig"
source "drivers/crypto/inside-secure/eip93/Kconfig"

endif # CRYPTO_HW
+1 −0
Original line number Diff line number Diff line
@@ -50,3 +50,4 @@ obj-y += hisilicon/
obj-$(CONFIG_CRYPTO_DEV_AMLOGIC_GXL) += amlogic/
obj-y += intel/
obj-y += starfive/
obj-y += inside-secure/eip93/
+20 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
config CRYPTO_DEV_EIP93
	tristate "Support for EIP93 crypto HW accelerators"
	depends on SOC_MT7621 || ARCH_AIROHA ||COMPILE_TEST
	select CRYPTO_LIB_AES
	select CRYPTO_LIB_DES
	select CRYPTO_SKCIPHER
	select CRYPTO_AEAD
	select CRYPTO_AUTHENC
	select CRYPTO_MD5
	select CRYPTO_SHA1
	select CRYPTO_SHA256
	help
	  EIP93 have various crypto HW accelerators. Select this if
	  you want to use the EIP93 modules for any of the crypto algorithms.

	  If the IP supports it, this provide offload for AES - ECB, CBC and
	  CTR crypto. Also provide DES and 3DES ECB and CBC.

	  Also provide AEAD authenc(hmac(x), cipher(y)) for supported algo.
+5 −0
Original line number Diff line number Diff line
obj-$(CONFIG_CRYPTO_DEV_EIP93) += crypto-hw-eip93.o

crypto-hw-eip93-y += eip93-main.o eip93-common.o
crypto-hw-eip93-y += eip93-cipher.o eip93-aead.o
crypto-hw-eip93-y += eip93-hash.o
Loading