Change signature of mbedtls_rsa_deduce_private

Make input arguments constant and adapt the implementation to use a temporary instead of in-place operations.
This commit is contained in:
Hanno Becker 2017-10-02 09:57:50 +01:00
parent ba5b755f1a
commit bdefff1dde
3 changed files with 19 additions and 26 deletions

View file

@ -804,7 +804,7 @@ void mbedtls_rsa_deduce_private( int radix_P, char *input_P,
}
/* Try to deduce D from N, P, Q, E. */
TEST_ASSERT( mbedtls_rsa_deduce_private( &P, &Q, &D, &E ) == result );
TEST_ASSERT( mbedtls_rsa_deduce_private( &P, &Q, &E, &D ) == result );
if( !corrupt )
{