mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +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
|
|
@ -181,6 +181,14 @@ cleanup:
|
|||
return( ret );
|
||||
}
|
||||
|
||||
/*
|
||||
* Copy the contents of a group object
|
||||
*/
|
||||
int ecp_group_copy( ecp_group *dst, const ecp_group *src )
|
||||
{
|
||||
return ecp_use_known_dp( dst, src->id );
|
||||
}
|
||||
|
||||
/*
|
||||
* Import a non-zero point from ASCII strings
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue