mbedtls_mpi_core_add() function
Add two fixed-size large unsigned integers, returning the carry. Calculates `A + B` where `A` and `B` have the same size. This function operates modulo `2^(biL*limbs)` and returns the carry (1 if there was a wraparound, and 0 otherwise). \p X may be aliased to \p A or \p B.
Arguments
X
The result of the addition.
A
Little-endian presentation of the left operand.
B
Little-endian presentation of the right operand.
limbs
Number of limbs of \p X, \p A and \p B.
Return value
1 if `A + B >= 2^(biL*limbs)`, 0 otherwise.
![]()
c = mbedtls_mpi_core_add(p, p, B->p, j);
mbedtls_mpi_core_add() is called by 1 function:
![]()
mbedtls_mpi_core_add()
mbedtls_mpi_core_add():
![]()
mbedtls_mpi_core_add()