]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused crypto_bignum_rshift()
authorJouni Malinen <j@w1.fi>
Sat, 15 Feb 2014 09:31:20 +0000 (11:31 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 15 Feb 2014 09:31:20 +0000 (11:31 +0200)
Commit bf4f5d6570c847109378fd4f44e3d89c6ebb3acd removed the only user of
this function.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/crypto.h
src/crypto/crypto_openssl.c

index 9bccaaa8f864aa4b39371cdae57953ba95562b91..4caa277deede5d393700d81a07af1624f8b439a0 100644 (file)
@@ -533,16 +533,6 @@ int crypto_bignum_exptmod(const struct crypto_bignum *a,
                          const struct crypto_bignum *c,
                          struct crypto_bignum *d);
 
-/**
- * crypto_bignum_rshift - b = a >> n
- * @a: Bignum
- * @n: Number of bits to shift
- * @b: Bignum; used to store the result of a >> n
- * Returns: 0 on success, -1 on failure
- */
-int crypto_bignum_rshift(const struct crypto_bignum *a, int n,
-                        struct crypto_bignum *b);
-
 /**
  * crypto_bignum_inverse - Inverse a bignum so that a * c = 1 (mod b)
  * @a: Bignum
index 1da2b9f4a37934bab1e7e8942fb23fec47e21fd5..817ee2d00cbfcccf80d42f28f33ca14c374fdaec 100644 (file)
@@ -916,13 +916,6 @@ int crypto_bignum_exptmod(const struct crypto_bignum *a,
 }
 
 
-int crypto_bignum_rshift(const struct crypto_bignum *a, int n,
-                        struct crypto_bignum *b)
-{
-       return BN_rshift((BIGNUM *) b, (const BIGNUM *) a, n) ? 0 : -1;
-}
-
-
 int crypto_bignum_inverse(const struct crypto_bignum *a,
                          const struct crypto_bignum *b,
                          struct crypto_bignum *c)