Rename constant-time functions to have mbedtls_ct prefix
Rename functions to better suite with the module name.
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
diff --git a/library/rsa.c b/library/rsa.c
index 856a04b..d839d45 100644
--- a/library/rsa.c
+++ b/library/rsa.c
@@ -1492,7 +1492,7 @@
if( ret != 0 )
goto cleanup;
- ret = mbedtls_cf_rsaes_pkcs1_v15_unpadding( buf, ilen,
+ ret = mbedtls_ct_rsaes_pkcs1_v15_unpadding( buf, ilen,
output, output_max_len, olen );
cleanup:
@@ -1887,7 +1887,7 @@
MBEDTLS_MPI_CHK( mbedtls_rsa_private( ctx, f_rng, p_rng, sig, sig_try ) );
MBEDTLS_MPI_CHK( mbedtls_rsa_public( ctx, sig_try, verif ) );
- if( mbedtls_cf_memcmp( verif, sig, ctx->len ) != 0 )
+ if( mbedtls_ct_memcmp( verif, sig, ctx->len ) != 0 )
{
ret = MBEDTLS_ERR_RSA_PRIVATE_FAILED;
goto cleanup;
@@ -2159,7 +2159,7 @@
* Compare
*/
- if( ( ret = mbedtls_cf_memcmp( encoded, encoded_expected,
+ if( ( ret = mbedtls_ct_memcmp( encoded, encoded_expected,
sig_len ) ) != 0 )
{
ret = MBEDTLS_ERR_RSA_VERIFY_FAILED;