mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Create ecp_group_copy() and use it
This commit is contained in:
parent
aa431613b3
commit
e09631b7c4
3 changed files with 21 additions and 2 deletions
|
|
@ -152,9 +152,9 @@ int main( int argc, char *argv[] )
|
|||
printf( " . Preparing verification context..." );
|
||||
fflush( stdout );
|
||||
|
||||
if( ( ret = ecp_use_known_dp( &ctx_verify.grp, ctx_sign.grp.id ) ) != 0 )
|
||||
if( ( ret = ecp_group_copy( &ctx_verify.grp, &ctx_sign.grp ) ) != 0 )
|
||||
{
|
||||
printf( " failed\n ! ecp_use_known_dp returned %d\n", ret );
|
||||
printf( " failed\n ! ecp_group_copy returned %d\n", ret );
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue