mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Add ECDH primitives
This commit is contained in:
@ -121,6 +121,14 @@ cleanup:
|
||||
return( ret );
|
||||
}
|
||||
|
||||
/*
|
||||
* Tell if a point is zero
|
||||
*/
|
||||
int ecp_is_zero( ecp_point *pt )
|
||||
{
|
||||
return( mpi_cmp_int( &pt->Z, 0 ) == 0 );
|
||||
}
|
||||
|
||||
/*
|
||||
* Copy the contents of Q into P
|
||||
*/
|
||||
|
Reference in New Issue
Block a user