diff options
author | Nicolai Stange | 2022-02-21 13:11:00 +0100 |
---|---|---|
committer | Herbert Xu | 2022-03-03 10:47:52 +1200 |
commit | 81771ff2411a4cd1224c4b16e0b4247e71bba0de (patch) | |
tree | ba3301c1ec783be38e5e4806e9c13946cd360cb9 | |
parent | 32f07cc40c9bb41452dc9d6c514a2012d9682b39 (diff) |
lib/mpi: export mpi_rshift
A subsequent patch will make the crypto/dh's dh_is_pubkey_valid() to
calculate a safe-prime groups Q parameter from P: Q = (P - 1) / 2. For
implementing this, mpi_rshift() will be needed. Export it so that it's
accessible from crypto/dh.
Signed-off-by: Nicolai Stange <nstange@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | lib/mpi/mpi-bit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mpi/mpi-bit.c b/lib/mpi/mpi-bit.c index 142b680835df..070ba784c9f1 100644 --- a/lib/mpi/mpi-bit.c +++ b/lib/mpi/mpi-bit.c @@ -242,6 +242,7 @@ void mpi_rshift(MPI x, MPI a, unsigned int n) } MPN_NORMALIZE(x->d, x->nlimbs); } +EXPORT_SYMBOL_GPL(mpi_rshift); /**************** * Shift A by COUNT limbs to the left |