1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

- Fixed a mistake in mpi_cmp_mpi() where longer B values are handled wrong

This commit is contained in:
Paul Bakker
2012-03-22 14:08:57 +00:00
parent b78c74551f
commit 0c8f73ba8b
2 changed files with 10 additions and 1 deletions

View File

@ -687,7 +687,7 @@ int mpi_cmp_mpi( const mpi *X, const mpi *Y )
return( 0 );
if( i > j ) return( X->s );
if( j > i ) return( -X->s );
if( j > i ) return( -Y->s );
if( X->s > 0 && Y->s < 0 ) return( 1 );
if( Y->s > 0 && X->s < 0 ) return( -1 );