summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>2017-09-29 12:13:08 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-10-12 22:55:00 +0800
commit91f4dd5c7dcfe574fe5540b1f183d741cd99227a (patch)
tree36b603aa1d3f8a92ade9f65915065b2f347cddc3 /crypto
parent1e6b457d3c267ebe0937fd01ed30d1235bf89c33 (diff)
downloadlinux-crypto-91f4dd5c7dcfe574fe5540b1f183d741cd99227a.tar.gz
linux-crypto-91f4dd5c7dcfe574fe5540b1f183d741cd99227a.zip
crypto: ecdh - return unsigned value for crypto_ecdh_key_len()
ECDH_KPP_SECRET_MIN_SIZE and params->key_size are both returning unsigned values. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ecdh_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ecdh_helper.c b/crypto/ecdh_helper.c
index f05bea5f..d3af8e8b 100644
--- a/crypto/ecdh_helper.c
+++ b/crypto/ecdh_helper.c
@@ -28,7 +28,7 @@ static inline const u8 *ecdh_unpack_data(void *dst, const void *src, size_t sz)
return src + sz;
}
-int crypto_ecdh_key_len(const struct ecdh *params)
+unsigned int crypto_ecdh_key_len(const struct ecdh *params)
{
return ECDH_KPP_SECRET_MIN_SIZE + params->key_size;
}