Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Nicolai Stange and committed by
Herbert Xu
81771ff2 32f07cc4

+1
+1
lib/mpi/mpi-bit.c
··· 242 242 } 243 243 MPN_NORMALIZE(x->d, x->nlimbs); 244 244 } 245 + EXPORT_SYMBOL_GPL(mpi_rshift); 245 246 246 247 /**************** 247 248 * Shift A by COUNT limbs to the left