Commit 0880bb3b authored by Akhil R's avatar Akhil R Committed by Herbert Xu
Browse files

crypto: tegra - Add Tegra Security Engine driver



Add support for Tegra Security Engine which can accelerate various
crypto algorithms. The Engine has two separate instances within for
AES and HASH algorithms respectively.

The driver registers two crypto engines - one for AES and another for
HASH algorithms and these operate independently and both uses the host1x
bus. Additionally, it provides  hardware-assisted key protection for up
to 15 symmetric keys which it can use for the cipher operations.

Signed-off-by: default avatarAkhil R <akhilrajeev@nvidia.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent cc370ff8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -21702,6 +21702,11 @@ M: Prashant Gaikwad <pgaikwad@nvidia.com>
S:	Supported
F:	drivers/clk/tegra/
TEGRA CRYPTO DRIVERS
M:	Akhil R <akhilrajeev@nvidia.com>
S:	Supported
F:	drivers/crypto/tegra/*
TEGRA DMA DRIVERS
M:	Laxman Dewangan <ldewangan@nvidia.com>
M:	Jon Hunter <jonathanh@nvidia.com>
+8 −0
Original line number Diff line number Diff line
@@ -660,6 +660,14 @@ config CRYPTO_DEV_ROCKCHIP_DEBUG
	  This will create /sys/kernel/debug/rk3288_crypto/stats for displaying
	  the number of requests per algorithm and other internal stats.

config CRYPTO_DEV_TEGRA
	tristate "Enable Tegra Security Engine"
	depends on TEGRA_HOST1X
	select CRYPTO_ENGINE

	help
	  Select this to enable Tegra Security Engine which accelerates various
	  AES encryption/decryption and HASH algorithms.

config CRYPTO_DEV_ZYNQMP_AES
	tristate "Support for Xilinx ZynqMP AES hw accelerator"
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ obj-$(CONFIG_CRYPTO_DEV_SAHARA) += sahara.o
obj-$(CONFIG_CRYPTO_DEV_SL3516) += gemini/
obj-y += stm32/
obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o
obj-$(CONFIG_CRYPTO_DEV_TEGRA) += tegra/
obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio/
#obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
obj-$(CONFIG_CRYPTO_DEV_BCM_SPU) += bcm/
+9 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

tegra-se-objs := tegra-se-key.o tegra-se-main.o

tegra-se-y += tegra-se-aes.o
tegra-se-y += tegra-se-hash.o

obj-$(CONFIG_CRYPTO_DEV_TEGRA) += tegra-se.o
+1933 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading