Parcourir la source

Remove unused crypto_bignum_rshift()

Commit bf4f5d6570c847109378fd4f44e3d89c6ebb3acd removed the only user of
this function.

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 11 ans
Parent
commit
a9b08adacf
2 fichiers modifiés avec 0 ajouts et 17 suppressions
  1. 0 10
      src/crypto/crypto.h
  2. 0 7
      src/crypto/crypto_openssl.c

+ 0 - 10
src/crypto/crypto.h

@@ -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

+ 0 - 7
src/crypto/crypto_openssl.c

@@ -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)