1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Make mbedtls_mpi_exp_mod_unsafe internal

Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
Janos Follath
2024-08-22 13:00:12 +01:00
parent 6c2086931d
commit 82976f3548
2 changed files with 10 additions and 33 deletions

View File

@ -1228,6 +1228,16 @@ int mbedtls_rsa_check_pub_priv(const mbedtls_rsa_context *pub,
return 0;
}
/*
* This function is identical to mbedtls_mpi_exp_mod() the only difference is that this function is
* not constant time.
*
* WARNING! This function is not constant time.
*/
int mbedtls_mpi_exp_mod_unsafe(mbedtls_mpi *X, const mbedtls_mpi *A,
const mbedtls_mpi *E, const mbedtls_mpi *N,
mbedtls_mpi *prec_RR);
/*
* Do an RSA public key operation
*/