mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
nvidia-oot: add support for hv-vse driver
Using this patch we are adding support for hv-vse driver in oot kernel. List of commit ids still which we are using file from nvidia repo. 4eb5988cde vse-safety: align gpcdma buffer to 64 bytes 4852794a4a crypto: fix array out-of-bound access defect 56e33f53c8 crypto: extend features in multi-IVC development 0b7c238968 (multi_ivc) crypto: check crypto ctx before handling 7e35a5739b crypto: check crypto request before handling 446c88152f Revert "crypto: vse: add multi-ivc support-10" c33753cbd6 crypto: disable Power management for GPCDMA cfg JIRA ESLC-6885 Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Change-Id: I77c5abcff045e444ff320fbf2709b07f0ab383aa Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2794878 Reviewed-by: Leo Chiu <lchiu@nvidia.com> Reviewed-by: Sandeep Trasi <strasi@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
6da4ac36e6
commit
ddd988fbf6
@@ -7,3 +7,4 @@ ccflags-y += -I$(srctree)/include
|
||||
obj-m += tegra-se-nvhost.o
|
||||
obj-m += tegra-se-nvrng.o
|
||||
obj-m += tegra-nvvse-cryptodev.o
|
||||
obj-m += tegra-hv-vse-safety.o
|
||||
|
||||
4579
drivers/crypto/tegra-hv-vse-safety.c
Normal file
4579
drivers/crypto/tegra-hv-vse-safety.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -244,7 +244,7 @@ static int tnvvse_crypto_sha_init(struct tnvvse_crypto_ctx *ctx,
|
||||
/* Shake128/Shake256 have variable digest size */
|
||||
if ((init_ctl->sha_type == TEGRA_NVVSE_SHA_TYPE_SHAKE128) ||
|
||||
(init_ctl->sha_type == TEGRA_NVVSE_SHA_TYPE_SHAKE256)) {
|
||||
// req->dst_size = init_ctl->digest_size;
|
||||
sha_ctx->digest_size = init_ctl->digest_size;
|
||||
if (init_ctl->digest_size > NVVSE_MAX_ALLOCATED_SHA_RESULT_BUFF_SIZE) {
|
||||
result_buff = kzalloc(init_ctl->digest_size, GFP_KERNEL);
|
||||
if (!result_buff) {
|
||||
|
||||
Reference in New Issue
Block a user