mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 00:05:36 +01:00
Merge branch 'pr_403' into development-proposed
This commit is contained in:
commit
5bdb671404
@ -1,5 +1,10 @@
|
|||||||
mbed TLS ChangeLog (Sorted per branch, date)
|
mbed TLS ChangeLog (Sorted per branch, date)
|
||||||
|
|
||||||
|
= mbed TLS x.x.x branch released xxxx-xx-xx
|
||||||
|
|
||||||
|
Changes
|
||||||
|
* Remove some redundant code in bignum.c. Contributed by Alexey Skalozub.
|
||||||
|
|
||||||
= mbed TLS 2.8.0 branch released 2018-03-16
|
= mbed TLS 2.8.0 branch released 2018-03-16
|
||||||
|
|
||||||
Default behavior changes
|
Default behavior changes
|
||||||
|
@ -963,7 +963,7 @@ static void mpi_sub_hlp( size_t n, mbedtls_mpi_uint *s, mbedtls_mpi_uint *d )
|
|||||||
while( c != 0 )
|
while( c != 0 )
|
||||||
{
|
{
|
||||||
z = ( *d < c ); *d -= c;
|
z = ( *d < c ); *d -= c;
|
||||||
c = z; i++; d++;
|
c = z; d++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1201,8 +1201,8 @@ int mbedtls_mpi_mul_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi
|
|||||||
MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, i + j ) );
|
MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, i + j ) );
|
||||||
MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, 0 ) );
|
MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, 0 ) );
|
||||||
|
|
||||||
for( i++; j > 0; j-- )
|
for( ; j > 0; j-- )
|
||||||
mpi_mul_hlp( i - 1, A->p, X->p + j - 1, B->p[j - 1] );
|
mpi_mul_hlp( i, A->p, X->p + j - 1, B->p[j - 1] );
|
||||||
|
|
||||||
X->s = A->s * B->s;
|
X->s = A->s * B->s;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user