mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 00:55:39 +01:00
Fix a constness issue
This commit is contained in:
parent
35f1d7f0aa
commit
fa8aebcbcc
@ -6,6 +6,7 @@ Features
|
|||||||
* Support for DTLS 1.0 and 1.2 (RFC 6347).
|
* Support for DTLS 1.0 and 1.2 (RFC 6347).
|
||||||
|
|
||||||
API Changes
|
API Changes
|
||||||
|
* Some constness fixes
|
||||||
* Signature of mpi_mul_mpi() changed to make the last argument unsigned
|
* Signature of mpi_mul_mpi() changed to make the last argument unsigned
|
||||||
* Remove the PBKDF2 module (use PKCS5).
|
* Remove the PBKDF2 module (use PKCS5).
|
||||||
* Remove POLARSSL_ERROR_STRERROR_BC (use mbedtls_strerror()).
|
* Remove POLARSSL_ERROR_STRERROR_BC (use mbedtls_strerror()).
|
||||||
|
@ -715,7 +715,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( mpi *X,
|
int mpi_is_prime( const mpi *X,
|
||||||
int (*f_rng)(void *, unsigned char *, size_t),
|
int (*f_rng)(void *, unsigned char *, size_t),
|
||||||
void *p_rng );
|
void *p_rng );
|
||||||
|
|
||||||
|
@ -2041,7 +2041,7 @@ cleanup:
|
|||||||
/*
|
/*
|
||||||
* Pseudo-primality test: small factors, then Miller-Rabin
|
* Pseudo-primality test: small factors, then Miller-Rabin
|
||||||
*/
|
*/
|
||||||
int mpi_is_prime( mpi *X,
|
int mpi_is_prime( const 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…
Reference in New Issue
Block a user