mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
@ -1671,8 +1671,8 @@ int mbedtls_mpi_exp_mod(mbedtls_mpi *X, const mbedtls_mpi *A,
|
|||||||
/*
|
/*
|
||||||
* Allocate working memory for mbedtls_mpi_core_exp_mod()
|
* Allocate working memory for mbedtls_mpi_core_exp_mod()
|
||||||
*/
|
*/
|
||||||
MBEDTLS_MPI_CHK(mbedtls_mpi_grow(&T,
|
size_t T_limbs = mbedtls_mpi_core_exp_mod_working_limbs(N->n, E->n);
|
||||||
mbedtls_mpi_core_exp_mod_working_limbs(N->n, E->n)));
|
MBEDTLS_MPI_CHK(mbedtls_mpi_grow(&T, T_limbs));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert to and from Montgomery around mbedtls_mpi_core_exp_mod().
|
* Convert to and from Montgomery around mbedtls_mpi_core_exp_mod().
|
||||||
|
Reference in New Issue
Block a user