1
0
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:
Manuel Pégourié-Gonnard
2013-01-26 16:05:22 +01:00
parent 0bad5c2381
commit 6545ca7bed
4 changed files with 91 additions and 3 deletions

View File

@ -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
*/