From a9b08adacfd9dc82e99aad8fdb64e575a75feb5b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 15 Feb 2014 11:31:20 +0200 Subject: [PATCH] Remove unused crypto_bignum_rshift() Commit bf4f5d6570c847109378fd4f44e3d89c6ebb3acd removed the only user of this function. Signed-off-by: Jouni Malinen --- src/crypto/crypto.h | 10 ---------- src/crypto/crypto_openssl.c | 7 ------- 2 files changed, 17 deletions(-) diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h index 9bccaaa8f..4caa277de 100644 --- a/src/crypto/crypto.h +++ b/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 diff --git a/src/crypto/crypto_openssl.c b/src/crypto/crypto_openssl.c index 1da2b9f4a..817ee2d00 100644 --- a/src/crypto/crypto_openssl.c +++ b/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)