For Edwards curves, the identity element isn't at infinity, so rename the identity check function accordingly

This commit is contained in:
Matthias Schiffer 2012-03-16 20:59:33 +01:00
parent a3743a365a
commit 3ea1ba496e
2 changed files with 8 additions and 7 deletions

View file

@ -45,7 +45,7 @@ typedef struct _ecc_25519_work {
void ecc_25519_load(ecc_25519_work *out, const ecc_public_key_256 *in);
void ecc_25519_store(ecc_public_key_256 *out, const ecc_25519_work *in);
int ecc_25519_is_infinity(const ecc_25519_work *in);
int ecc_25519_is_identity(const ecc_25519_work *in);
void ecc_25519_add(ecc_25519_work *out, const ecc_25519_work *in1, const ecc_25519_work *in2);
void ecc_25519_double(ecc_25519_work *out, const ecc_25519_work *in);
void ecc_25519_scalarmult(ecc_25519_work *out, const ecc_secret_key_256 *n, const ecc_25519_work *base);