mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 00:05:36 +01:00
Update signature of mpi_mul_mpi()
This commit is contained in:
parent
7f7aebca02
commit
35f1d7f0aa
@ -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
|
||||||
|
* 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()).
|
||||||
* Headers are now found in the 'mbedtls' directory (previously 'polarssl').
|
* Headers are now found in the 'mbedtls' directory (previously 'polarssl').
|
||||||
|
@ -571,18 +571,17 @@ int mpi_mul_mpi( mpi *X, const mpi *A, const mpi *B );
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Baseline multiplication: X = A * b
|
* \brief Baseline multiplication: X = A * b
|
||||||
* Note: despite the functon signature, b is treated as a
|
|
||||||
* t_uint. Negative values of b are treated as large positive
|
|
||||||
* values.
|
|
||||||
*
|
*
|
||||||
* \param X Destination MPI
|
* \param X Destination MPI
|
||||||
* \param A Left-hand MPI
|
* \param A Left-hand MPI
|
||||||
* \param b The integer value to multiply with
|
* \param b The unsigned integer value to multiply with
|
||||||
|
*
|
||||||
|
* \note b is unsigned
|
||||||
*
|
*
|
||||||
* \return 0 if successful,
|
* \return 0 if successful,
|
||||||
* POLARSSL_ERR_MPI_MALLOC_FAILED if memory allocation failed
|
* POLARSSL_ERR_MPI_MALLOC_FAILED if memory allocation failed
|
||||||
*/
|
*/
|
||||||
int mpi_mul_int( mpi *X, const mpi *A, t_sint b );
|
int mpi_mul_int( mpi *X, const mpi *A, t_uint b );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Division by mpi: A = Q * B + R
|
* \brief Division by mpi: A = Q * B + R
|
||||||
|
@ -1170,7 +1170,7 @@ cleanup:
|
|||||||
/*
|
/*
|
||||||
* Baseline multiplication: X = A * b
|
* Baseline multiplication: X = A * b
|
||||||
*/
|
*/
|
||||||
int mpi_mul_int( mpi *X, const mpi *A, t_sint b )
|
int mpi_mul_int( mpi *X, const mpi *A, t_uint b )
|
||||||
{
|
{
|
||||||
mpi _B;
|
mpi _B;
|
||||||
t_uint p[1];
|
t_uint p[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user