mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 16:25:32 +00:00
ECDSA: Add mbedtls_ecdsa_can_do
This commit is contained in:
parent
5b66622164
commit
6737f20157
|
@ -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