summaryrefslogtreecommitdiffstats
path: root/crypto/dh_helper.c
diff options
context:
space:
mode:
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>2017-09-29 11:21:04 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-10-12 16:55:01 +0200
commitcb195b362537ca97ceccefbbba6b4071ed77434f (patch)
tree7faf827a8de3becca22dd5981e3268ba52721bed /crypto/dh_helper.c
parentcrypto: ecdh - return unsigned value for crypto_ecdh_key_len() (diff)
downloadlinux-cb195b362537ca97ceccefbbba6b4071ed77434f.tar.xz
linux-cb195b362537ca97ceccefbbba6b4071ed77434f.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>
Diffstat (limited to 'crypto/dh_helper.c')
-rw-r--r--crypto/dh_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dh_helper.c b/crypto/dh_helper.c
index 8ba8a3f82620..69869dad344a 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;
}