mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Create ecp_group_copy() and use it
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user