mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-09 19:31:18 +08:00
Change types and move const before type
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
baa34b6248
commit
d391b8ce61
@ -120,11 +120,11 @@ int mbedtls_mpi_mod_raw_write( const mbedtls_mpi_uint *A,
|
|||||||
|
|
||||||
/* BEGIN MERGE SLOT 5 */
|
/* BEGIN MERGE SLOT 5 */
|
||||||
void mbedtls_mpi_mod_raw_add( mbedtls_mpi_uint *X,
|
void mbedtls_mpi_mod_raw_add( mbedtls_mpi_uint *X,
|
||||||
mbedtls_mpi_uint const *A,
|
const mbedtls_mpi_uint *A,
|
||||||
mbedtls_mpi_uint const *B,
|
const mbedtls_mpi_uint *B,
|
||||||
const mbedtls_mpi_mod_modulus *N )
|
const mbedtls_mpi_mod_modulus *N )
|
||||||
{
|
{
|
||||||
size_t carry, borrow = 0;
|
mbedtls_mpi_uint carry, borrow;
|
||||||
carry = mbedtls_mpi_core_add( X, A, B, N->limbs );
|
carry = mbedtls_mpi_core_add( X, A, B, N->limbs );
|
||||||
borrow = mbedtls_mpi_core_sub( X, X, N->p, N->limbs );
|
borrow = mbedtls_mpi_core_sub( X, X, N->p, N->limbs );
|
||||||
(void) mbedtls_mpi_core_add_if( X, N->p, N->limbs, ( carry < borrow ) );
|
(void) mbedtls_mpi_core_add_if( X, N->p, N->limbs, ( carry < borrow ) );
|
||||||
|
@ -170,8 +170,8 @@ int mbedtls_mpi_mod_raw_write( const mbedtls_mpi_uint *A,
|
|||||||
* \param[in] N The address of the modulus.
|
* \param[in] N The address of the modulus.
|
||||||
*/
|
*/
|
||||||
void mbedtls_mpi_mod_raw_add( mbedtls_mpi_uint *X,
|
void mbedtls_mpi_mod_raw_add( mbedtls_mpi_uint *X,
|
||||||
mbedtls_mpi_uint const *A,
|
const mbedtls_mpi_uint *A,
|
||||||
mbedtls_mpi_uint const *B,
|
const mbedtls_mpi_uint *B,
|
||||||
const mbedtls_mpi_mod_modulus *N );
|
const mbedtls_mpi_mod_modulus *N );
|
||||||
/* END MERGE SLOT 5 */
|
/* END MERGE SLOT 5 */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user