Correct outdated comment
This commit is contained in:
parent
4e1be398f6
commit
2dec5e8b00
1 changed files with 3 additions and 2 deletions
|
@ -585,8 +585,9 @@ int mbedtls_rsa_private( mbedtls_rsa_context *ctx,
|
||||||
MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &T, &T, &ctx->N ) );
|
MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &T, &T, &ctx->N ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If requested by the config, verify the result to prevent glitching attacks. */
|
/* Verify the result to prevent glitching attacks. */
|
||||||
MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &C, &T, &ctx->E, &ctx->N, &ctx->RN ) );
|
MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &C, &T, &ctx->E,
|
||||||
|
&ctx->N, &ctx->RN ) );
|
||||||
if( mbedtls_mpi_cmp_mpi( &C, &I ) != 0 )
|
if( mbedtls_mpi_cmp_mpi( &C, &I ) != 0 )
|
||||||
{
|
{
|
||||||
ret = MBEDTLS_ERR_RSA_VERIFY_FAILED;
|
ret = MBEDTLS_ERR_RSA_VERIFY_FAILED;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue