mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
Reverted API change for mpi_is_prime()
This commit is contained in:
parent
5e1e61124a
commit
45f457d872
@ -653,7 +653,7 @@ int mpi_inv_mod( mpi *X, const mpi *A, const mpi *N );
|
|||||||
* POLARSSL_ERR_MPI_MALLOC_FAILED if memory allocation failed,
|
* POLARSSL_ERR_MPI_MALLOC_FAILED if memory allocation failed,
|
||||||
* POLARSSL_ERR_MPI_NOT_ACCEPTABLE if X is not prime
|
* POLARSSL_ERR_MPI_NOT_ACCEPTABLE if X is not prime
|
||||||
*/
|
*/
|
||||||
int mpi_is_prime( const mpi *X,
|
int mpi_is_prime( mpi *X,
|
||||||
int (*f_rng)(void *, unsigned char *, size_t),
|
int (*f_rng)(void *, unsigned char *, size_t),
|
||||||
void *p_rng );
|
void *p_rng );
|
||||||
|
|
||||||
|
@ -1919,7 +1919,7 @@ cleanup:
|
|||||||
/*
|
/*
|
||||||
* Pseudo-primality test: small factors, then Miller-Rabin
|
* Pseudo-primality test: small factors, then Miller-Rabin
|
||||||
*/
|
*/
|
||||||
int mpi_is_prime( const mpi *X,
|
int mpi_is_prime( mpi *X,
|
||||||
int (*f_rng)(void *, unsigned char *, size_t),
|
int (*f_rng)(void *, unsigned char *, size_t),
|
||||||
void *p_rng )
|
void *p_rng )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user