mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
New query function ecc_montgomery_is_identity.
To begin with, this allows me to add a regression test for the change in the previous commit.
This commit is contained in:
5
ecc.c
5
ecc.c
@ -833,6 +833,11 @@ void ecc_montgomery_get_affine(MontgomeryPoint *mp, mp_int **x)
|
||||
*x = monty_export(mc->mc, mp->X);
|
||||
}
|
||||
|
||||
unsigned ecc_montgomery_is_identity(MontgomeryPoint *mp)
|
||||
{
|
||||
return mp_eq_integer(mp->Z, 0);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
* Twisted Edwards curves.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user