From e0e15fc236ecc3570021145de9f7fbafb8bc2d22 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 26 Apr 2019 17:43:45 +0300 Subject: [PATCH] Remove unused crypto_bignum_bits() This wrapper function is not needed anymore. Signed-off-by: Jouni Malinen --- src/crypto/crypto.h | 7 ------- src/crypto/crypto_openssl.c | 6 ------ src/crypto/crypto_wolfssl.c | 6 ------ 3 files changed, 19 deletions(-) diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h index 12109ce83..15f8ad04c 100644 --- a/src/crypto/crypto.h +++ b/src/crypto/crypto.h @@ -644,13 +644,6 @@ int crypto_bignum_rshift(const struct crypto_bignum *a, int n, int crypto_bignum_cmp(const struct crypto_bignum *a, const struct crypto_bignum *b); -/** - * crypto_bignum_bits - Get size of a bignum in bits - * @a: Bignum - * Returns: Number of bits in the bignum - */ -int crypto_bignum_bits(const struct crypto_bignum *a); - /** * crypto_bignum_is_zero - Is the given bignum zero * @a: Bignum diff --git a/src/crypto/crypto_openssl.c b/src/crypto/crypto_openssl.c index 23ae5462d..228aa4bfa 100644 --- a/src/crypto/crypto_openssl.c +++ b/src/crypto/crypto_openssl.c @@ -1492,12 +1492,6 @@ int crypto_bignum_cmp(const struct crypto_bignum *a, } -int crypto_bignum_bits(const struct crypto_bignum *a) -{ - return BN_num_bits((const BIGNUM *) a); -} - - int crypto_bignum_is_zero(const struct crypto_bignum *a) { return BN_is_zero((const BIGNUM *) a); diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c index 976a00865..4cedab436 100644 --- a/src/crypto/crypto_wolfssl.c +++ b/src/crypto/crypto_wolfssl.c @@ -1198,12 +1198,6 @@ int crypto_bignum_cmp(const struct crypto_bignum *a, } -int crypto_bignum_bits(const struct crypto_bignum *a) -{ - return mp_count_bits((mp_int *) a); -} - - int crypto_bignum_is_zero(const struct crypto_bignum *a) { return mp_iszero((mp_int *) a);