aboutsummaryrefslogtreecommitdiffstats
path: root/include/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
commit6e97e08d4311d2413df0e891a10301bf4258fe3e (patch)
tree311a975d1b65c4c7f715362d86336cc822666bb0 /include/crypto
parentcrypto: bcm - pr_err() strings should end with newlines (diff)
downloadlinux-dev-6e97e08d4311d2413df0e891a10301bf4258fe3e.tar.xz
linux-dev-6e97e08d4311d2413df0e891a10301bf4258fe3e.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 'include/crypto')
-rw-r--r--include/crypto/ecdh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/ecdh.h b/include/crypto/ecdh.h
index 1aff2a8a3a68..d696317c43a8 100644
--- a/include/crypto/ecdh.h
+++ b/include/crypto/ecdh.h
@@ -54,7 +54,7 @@ struct ecdh {
*
* Return: size of the key in bytes
*/
-int crypto_ecdh_key_len(const struct ecdh *params);
+unsigned int crypto_ecdh_key_len(const struct ecdh *params);
/**
* crypto_ecdh_encode_key() - encode the private key