mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 15:32:58 +00:00
Note that (as usual) for mbedtls_mpi_mod_inv() residues must be associated with the modulus
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
dbac60924b
commit
d692ba4248
@ -196,6 +196,9 @@ int mbedtls_mpi_mod_sub( mbedtls_mpi_mod_residue *X,
|
|||||||
/**
|
/**
|
||||||
* \brief Perform modular inversion of an MPI with respect to a modulus \p N.
|
* \brief Perform modular inversion of an MPI with respect to a modulus \p N.
|
||||||
*
|
*
|
||||||
|
* \p A and \p X must be associated with the modulus \p N and will therefore
|
||||||
|
* have the same number of limbs as \p N.
|
||||||
|
*
|
||||||
* \p X may be aliased to \p A.
|
* \p X may be aliased to \p A.
|
||||||
*
|
*
|
||||||
* \warning Currently only supports prime moduli, but does not check for them.
|
* \warning Currently only supports prime moduli, but does not check for them.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user