mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Add mod_raw_mul function
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
@ -120,6 +120,16 @@ void mbedtls_mpi_mod_raw_sub( mbedtls_mpi_uint *X,
|
||||
(void) mbedtls_mpi_core_add_if( X, N->p, N->limbs, (unsigned) c );
|
||||
}
|
||||
|
||||
void mbedtls_mpi_mod_raw_mul( mbedtls_mpi_uint *X,
|
||||
const mbedtls_mpi_uint *A,
|
||||
const mbedtls_mpi_uint *B,
|
||||
const mbedtls_mpi_mod_modulus *N,
|
||||
mbedtls_mpi_uint *T )
|
||||
{
|
||||
mbedtls_mpi_core_montmul( X, A, B, N->limbs, N->p, N->limbs,
|
||||
N->rep.mont.mm, T );
|
||||
}
|
||||
|
||||
/* END MERGE SLOT 2 */
|
||||
|
||||
/* BEGIN MERGE SLOT 3 */
|
||||
|
Reference in New Issue
Block a user