mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-27 04:11:05 +00:00
Fix backporting errors
This commit is contained in:
parent
3682db5efd
commit
139708d105
|
@ -398,12 +398,9 @@ int rsa_private( rsa_context *ctx,
|
||||||
mpi *DQ = &ctx->DQ;
|
mpi *DQ = &ctx->DQ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mpi_init( &T ); mpi_init( &T1 ); mpi_init( &T2 );
|
|
||||||
|
|
||||||
mpi_init( &T ); mpi_init( &T1 ); mpi_init( &T2 );
|
mpi_init( &T ); mpi_init( &T1 ); mpi_init( &T2 );
|
||||||
mpi_init( &P1 ); mpi_init( &Q1 ); mpi_init( &R );
|
mpi_init( &P1 ); mpi_init( &Q1 ); mpi_init( &R );
|
||||||
|
|
||||||
|
|
||||||
if( f_rng != NULL )
|
if( f_rng != NULL )
|
||||||
{
|
{
|
||||||
#if defined(POLARSSL_RSA_NO_CRT)
|
#if defined(POLARSSL_RSA_NO_CRT)
|
||||||
|
@ -414,9 +411,8 @@ int rsa_private( rsa_context *ctx,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if defined(POLARSSL_THREADING_C)
|
#if defined(POLARSSL_THREADING_C)
|
||||||
if( ( ret = mutex_lock( &ctx->mutex ) ) != 0 )
|
if( ( ret = polarssl_mutex_lock( &ctx->mutex ) ) != 0 )
|
||||||
return( ret );
|
return( ret );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue