diff options
Diffstat (limited to 'drivers/misc/tegra-cryptodev.h')
-rw-r--r-- | drivers/misc/tegra-cryptodev.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/misc/tegra-cryptodev.h b/drivers/misc/tegra-cryptodev.h index 706d0af25d57..de89516fe6fc 100644 --- a/drivers/misc/tegra-cryptodev.h +++ b/drivers/misc/tegra-cryptodev.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010-2014, NVIDIA Corporation. All Rights Reserved. + * Copyright (c) 2010-2017, NVIDIA Corporation. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -50,7 +50,7 @@ struct tegra_crypt_req { int op; /* e.g. TEGRA_CRYPTO_ECB */ bool encrypt; char key[TEGRA_CRYPTO_MAX_KEY_SIZE]; - int keylen; + unsigned int keylen; char iv[TEGRA_CRYPTO_IV_SIZE]; int ivlen; u8 *plaintext; @@ -67,7 +67,7 @@ struct tegra_crypt_req_32 { int op; /* e.g. TEGRA_CRYPTO_ECB */ bool encrypt; char key[TEGRA_CRYPTO_MAX_KEY_SIZE]; - int keylen; + unsigned int keylen; char iv[TEGRA_CRYPTO_IV_SIZE]; int ivlen; __u32 plaintext; @@ -112,12 +112,12 @@ struct tegra_rsa_req { char *key; char *message; char *result; - int algo; - int keylen; - int msg_len; - int modlen; - int pub_explen; - int prv_explen; + unsigned int algo; + unsigned int keylen; + unsigned int msg_len; + unsigned int modlen; + unsigned int pub_explen; + unsigned int prv_explen; int skip_key; }; #define TEGRA_CRYPTO_IOCTL_RSA_REQ \ @@ -128,12 +128,12 @@ struct tegra_rsa_req_32 { __u32 key; __u32 message; __u32 result; - int algo; - int keylen; - int msg_len; - int modlen; - int pub_explen; - int prv_explen; + __u32 algo; + __u32 keylen; + __u32 msg_len; + __u32 modlen; + __u32 pub_explen; + __u32 prv_explen; int skip_key; }; #define TEGRA_CRYPTO_IOCTL_RSA_REQ_32 \ @@ -142,11 +142,11 @@ struct tegra_rsa_req_32 { struct tegra_sha_req { char key[TEGRA_CRYPTO_MAX_KEY_SIZE]; - int keylen; + unsigned int keylen; unsigned char *algo; unsigned char *plaintext; unsigned char *result; - int plaintext_sz; + unsigned int plaintext_sz; }; #define TEGRA_CRYPTO_IOCTL_GET_SHA \ _IOWR(0x98, 104, struct tegra_sha_req) @@ -154,11 +154,11 @@ struct tegra_sha_req { #ifdef CONFIG_COMPAT struct tegra_sha_req_32 { char key[TEGRA_CRYPTO_MAX_KEY_SIZE]; - int keylen; + __u32 keylen; __u32 algo; __u32 plaintext; __u32 result; - int plaintext_sz; + __u32 plaintext_sz; }; #define TEGRA_CRYPTO_IOCTL_GET_SHA_32 \ _IOWR(0x98, 104, struct tegra_sha_req_32) |