diff options
author | Tudor-Dan Ambarus <tudor.ambarus@microchip.com> | 2017-09-29 11:13:08 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-10-12 16:55:00 +0200 |
commit | 6e97e08d4311d2413df0e891a10301bf4258fe3e (patch) | |
tree | 311a975d1b65c4c7f715362d86336cc822666bb0 /crypto/ecdh_helper.c | |
parent | crypto: bcm - pr_err() strings should end with newlines (diff) | |
download | linux-6e97e08d4311d2413df0e891a10301bf4258fe3e.tar.xz linux-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 'crypto/ecdh_helper.c')
-rw-r--r-- | crypto/ecdh_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ecdh_helper.c b/crypto/ecdh_helper.c index f05bea5fd257..d3af8e8b0b5e 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; } |