]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused crypto_bignum_bits()
authorJouni Malinen <jouni@codeaurora.org>
Fri, 26 Apr 2019 14:43:45 +0000 (17:43 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 26 Apr 2019 14:43:45 +0000 (17:43 +0300)
This wrapper function is not needed anymore.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/crypto/crypto.h
src/crypto/crypto_openssl.c
src/crypto/crypto_wolfssl.c

index 12109ce83a9adbfaa4c69c42e793ad4dd018b1ea..15f8ad04cea488bffedf776452e0618dca806213 100644 (file)
@@ -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
index 23ae5462dadf52281423476685d53810e185b1cc..228aa4bfa8d0339bf9f24659b9a08a0bbda4cde6 100644 (file)
@@ -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);
index 976a008651b75202fba14ec0ef67cded9803dc29..4cedab4367cd40cba7bcf1a7d4fc6e56888f12a8 100644 (file)
@@ -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);