mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
bignum_mod: Updated optred_modulus_setup
to use function input.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
@ -214,14 +214,14 @@ int mbedtls_mpi_mod_modulus_setup(mbedtls_mpi_mod_modulus *N,
|
||||
* not be modified in any way until after
|
||||
* mbedtls_mpi_mod_modulus_free() is called.
|
||||
* \param p_limbs The number of limbs of \p p.
|
||||
* \param ored The optimized reduction structure to use. \p p.
|
||||
* \param modp A pointer to the optimised reduction function to use. \p p.
|
||||
*
|
||||
* \return \c 0 if successful.
|
||||
*/
|
||||
int mbedtls_mpi_mod_optred_modulus_setup(mbedtls_mpi_mod_modulus *N,
|
||||
const mbedtls_mpi_uint *p,
|
||||
size_t p_limbs,
|
||||
mbedtls_mpi_opt_red_struct *ored);
|
||||
int (*modp)(mbedtls_mpi *));
|
||||
|
||||
/** Free elements of a modulus structure.
|
||||
*
|
||||
|
Reference in New Issue
Block a user