mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-06 20:46:32 +02:00
Merge branch 'mbedtls-1.3' into mbedtls-1.3-restricted
This commit is contained in:
@@ -823,7 +823,8 @@ void mpi_gen_prime( int bits, int safe, int ref_ret )
|
||||
TEST_ASSERT( mpi_is_prime( &X, rnd_std_rand, NULL ) == 0 );
|
||||
if( safe )
|
||||
{
|
||||
mpi_shift_r( &X, 1 ); /* X = ( X - 1 ) / 2 */
|
||||
/* X = ( X - 1 ) / 2 */
|
||||
TEST_ASSERT( mpi_shift_r( &X, 1 ) == 0 );
|
||||
TEST_ASSERT( mpi_is_prime( &X, rnd_std_rand, NULL ) == 0 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user