mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 09:42:19 +03:00
nvidia-oot: Increase keyslot size to 16 bytes
syncing changes b/w nvidia and nvidia-oot repo Bug 3697677 Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Change-Id: I0faa4d3107de5d9430ca91b407903990254e3b49 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2872402 Reviewed-by: Suresh Venkatachalam <skathirampat@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
dd88969020
commit
a8830def61
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <asm-generic/ioctl.h>
|
||||
|
||||
#define KEYSLOT_SIZE_BYTES 16
|
||||
#define TEGRA_NVVSE_IOC_MAGIC 0x98
|
||||
#define MAX_NUMBER_MISC_DEVICES 46U
|
||||
|
||||
@@ -151,7 +152,7 @@ struct tegra_nvvse_aes_enc_dec_ctl {
|
||||
* '0' value indicates First call and Non zero value indicates it is not the first call */
|
||||
uint8_t is_non_first_call;
|
||||
/** [in] Holds a keyslot number */
|
||||
uint32_t key_slot;
|
||||
uint8_t key_slot[KEYSLOT_SIZE_BYTES];
|
||||
/** [in] Holds the Key length */
|
||||
/** Supported keylengths are 16 and 32 bytes */
|
||||
uint8_t key_length;
|
||||
@@ -227,7 +228,7 @@ struct tegra_nvvse_aes_enc_dec_ctl {
|
||||
*/
|
||||
struct tegra_nvvse_aes_gmac_init_ctl {
|
||||
/** [in] Holds a keyslot number */
|
||||
uint32_t key_slot;
|
||||
uint8_t key_slot[KEYSLOT_SIZE_BYTES];
|
||||
/** [in] Holds the Key length */
|
||||
/** Supported keylengths are 16 and 32 bytes */
|
||||
uint8_t key_length;
|
||||
@@ -257,7 +258,7 @@ struct tegra_nvvse_aes_gmac_sign_verify_ctl {
|
||||
*/
|
||||
uint8_t is_last;
|
||||
/** [in] Holds a keyslot handle which is used for GMAC operation */
|
||||
uint32_t key_slot;
|
||||
uint8_t key_slot[KEYSLOT_SIZE_BYTES];
|
||||
/** [in] Holds the Key length
|
||||
* Supported keylength is only 16 bytes and 32 bytes
|
||||
*/
|
||||
@@ -321,7 +322,7 @@ struct tegra_nvvse_aes_cmac_sign_verify_ctl {
|
||||
*/
|
||||
uint8_t is_last;
|
||||
/** [in] Holds a keyslot handle which is used for CMAC operation */
|
||||
uint32_t key_slot;
|
||||
uint8_t key_slot[KEYSLOT_SIZE_BYTES];
|
||||
/** [in] Holds the Key length
|
||||
* Supported keylength is only 16 bytes and 32 bytes
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user