diff options
author | Tudor-Dan Ambarus <tudor.ambarus@microchip.com> | 2017-09-29 12:21:04 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-10-12 22:55:01 +0800 |
commit | 607150bd1fbf6a497a6326e57047e11bac35cfe7 (patch) | |
tree | 552b7369c2ed9cb2ea99509d906f6364600c64ce | |
parent | 91f4dd5c7dcfe574fe5540b1f183d741cd99227a (diff) | |
download | linux-crypto-607150bd1fbf6a497a6326e57047e11bac35cfe7.tar.gz linux-crypto-607150bd1fbf6a497a6326e57047e11bac35cfe7.zip |
crypto: dh - return unsigned int for dh_data_size()
p->key_size, p->p_size, p->g_size are all of unsigned int type.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | crypto/dh_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dh_helper.c b/crypto/dh_helper.c index 8ba8a3f8..69869dad 100644 --- a/crypto/dh_helper.c +++ b/crypto/dh_helper.c @@ -28,7 +28,7 @@ static inline const u8 *dh_unpack_data(void *dst, const void *src, size_t size) return src + size; } -static inline int dh_data_size(const struct dh *p) +static inline unsigned int dh_data_size(const struct dh *p) { return p->key_size + p->p_size + p->g_size; } |