vse: support 64 bit keyslot for tsec

Bug 4620571

Change-Id: Iea2f42167245308348a0a50e9fde14036c3f0736
Signed-off-by: lchiu <lchiu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3130036
(cherry picked from commit ba8f79f3e14b755ebb99464de2ff8d1c2d173e24)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3140529
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
lchiu
2024-05-02 09:08:50 +00:00
committed by mobile promotions
parent b7a1a14256
commit d2a5a35cfe

View File

@@ -457,7 +457,7 @@ struct tegra_virtual_tsec_args {
/**
* Keyslot index for keyslot containing TSEC key
*/
uint32_t keyslot;
uint64_t keyslot;
/**
* Size of input buffer in bytes.
@@ -2253,7 +2253,7 @@ static int tegra_hv_vse_safety_tsec_sv_op(struct ahash_request *req)
ivc_tx->tsec.src_addr = src_buf_addr;
ivc_tx->tsec.src_buf_size = req->nbytes;
ivc_tx->tsec.keyslot = *((uint32_t *)cmac_ctx->aes_keyslot);
ivc_tx->tsec.keyslot = *((uint64_t *)cmac_ctx->aes_keyslot);
if (cmac_req_data->request_type == CMAC_SIGN) {
ivc_tx->cmd = TEGRA_VIRTUAL_SE_CMD_TSEC_SIGN;