From 45f457d8725f6514aed22104432bc2da125e7e38 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Mon, 25 Nov 2013 14:26:52 +0100 Subject: [PATCH] Reverted API change for mpi_is_prime() --- include/polarssl/bignum.h | 2 +- library/bignum.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/polarssl/bignum.h b/include/polarssl/bignum.h index 4e6cc8a95..b63a24242 100644 --- a/include/polarssl/bignum.h +++ b/include/polarssl/bignum.h @@ -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_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), void *p_rng ); diff --git a/library/bignum.c b/library/bignum.c index dd23195d3..4de2e9a3e 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -1919,7 +1919,7 @@ cleanup: /* * 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), void *p_rng ) {