mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-22 07:53:11 -05:00
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>
This commit is contained in:
parent
32f07cc40c
commit
81771ff241
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue