diff options
author | Tudor-Dan Ambarus <tudor.ambarus@microchip.com> | 2017-09-29 12:21:05 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-10-12 22:55:05 +0800 |
commit | 42b792b9a8e523e82c13996149f527a4b27436c4 (patch) | |
tree | 7d1da331bf7e8cf05fa12baccc062b91ff6c7b08 /crypto/dh_helper.c | |
parent | 607150bd1fbf6a497a6326e57047e11bac35cfe7 (diff) | |
download | linux-crypto-42b792b9a8e523e82c13996149f527a4b27436c4.tar.gz linux-crypto-42b792b9a8e523e82c13996149f527a4b27436c4.zip |
crypto: dh - return unsigned value for crypto_dh_key_len()
DH_KPP_SECRET_MIN_SIZE and dh_data_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/dh_helper.c')
-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 69869dad..a413b311 100644 --- a/crypto/dh_helper.c +++ b/crypto/dh_helper.c @@ -33,7 +33,7 @@ static inline unsigned int dh_data_size(const struct dh *p) return p->key_size + p->p_size + p->g_size; } -int crypto_dh_key_len(const struct dh *p) +unsigned int crypto_dh_key_len(const struct dh *p) { return DH_KPP_SECRET_MIN_SIZE + dh_data_size(p); } |