ECDSA: Add mbedtls_ecdsa_can_do
This commit is contained in:
parent
9b33e7d7d7
commit
6a1a9e468d
1 changed files with 6 additions and 0 deletions
|
@ -835,6 +835,9 @@ int main( int argc, char *argv[] )
|
|||
curve_info->grp_id != MBEDTLS_ECP_DP_NONE;
|
||||
curve_info++ )
|
||||
{
|
||||
if( mbedtls_ecdsa_can_do( curve_info->grp_id ) == 0 )
|
||||
continue;
|
||||
|
||||
mbedtls_ecdsa_init( &ecdsa );
|
||||
|
||||
if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 )
|
||||
|
@ -854,6 +857,9 @@ int main( int argc, char *argv[] )
|
|||
curve_info->grp_id != MBEDTLS_ECP_DP_NONE;
|
||||
curve_info++ )
|
||||
{
|
||||
if( mbedtls_ecdsa_can_do( curve_info->grp_id ) == 0 )
|
||||
continue;
|
||||
|
||||
mbedtls_ecdsa_init( &ecdsa );
|
||||
|
||||
if( mbedtls_ecdsa_genkey( &ecdsa, curve_info->grp_id, myrand, NULL ) != 0 ||
|
||||
|
|
Loading…
Reference in a new issue