mbedtls_mpi_core_mla() function
Perform a fixed-size multiply accumulate operation: X += b * A \p X may be aliased to \p A (when \p X_limbs == \p A_limbs), but may not otherwise overlap. This function operates modulo `2^(biL*X_limbs)`.
Arguments
X
The pointer to the (little-endian) array representing the bignum to accumulate onto.
X_limbs
The number of limbs of \p X. This must be at least \p A_limbs.
A
The pointer to the (little-endian) array representing the bignum to multiply with. This may be aliased to \p X but may not overlap otherwise.
A_limbs
The number of limbs of \p A.
b
X scalar to multiply with.
Return value
The carry at the end of the operation.
![]()
mbedtls_mpi_core_mla(X->p, X->n, A->p, n, b - 1);
mbedtls_mpi_core_mla() is called by 4 functions:
![]()
mbedtls_mpi_core_mla()
mbedtls_mpi_core_mla():
![]()
mbedtls_mpi_core_mla()