1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Remove mbedtls_rsa_check_crt

This is no longer needed after the decision to not exhaustively validate private key material.
This commit is contained in:
Hanno Becker
2017-10-02 12:25:52 +01:00
parent 98838b04af
commit c6fc878eda
5 changed files with 1 additions and 111 deletions

View File

@@ -150,14 +150,6 @@ int main( int argc, char *argv[] )
goto exit;
}
/* Although we're not using them, verify CRT parameters */
if( ( return_val = mbedtls_rsa_check_crt( &rsa, &DP, &DQ, &QP ) ) != 0 )
{
mbedtls_printf( " failed\n ! mbedtls_rsa_check_crt returned %d\n\n",
return_val );
goto exit;
}
/*
* Extract the RSA encrypted value from the text file
*/

View File

@@ -130,14 +130,6 @@ int main( int argc, char *argv[] )
goto exit;
}
/* Although we're not using them, verify CRT parameters */
if( ( ret = mbedtls_rsa_check_crt( &rsa, &DP, &DQ, &QP ) ) != 0 )
{
mbedtls_printf( " failed\n ! mbedtls_rsa_check_crt returned %d\n\n",
ret );
goto exit;
}
/*
* Compute the SHA-256 hash of the input file,
* then calculate the RSA signature of the hash.