mirror of
https://github.com/neocturne/libuecc.git
synced 2025-07-06 23:19:07 +02:00
Add functions for point negation and subtraction
This commit is contained in:
parent
a68abb34c2
commit
962888f03f
2 changed files with 32 additions and 0 deletions
|
@ -86,6 +86,13 @@ void ecc_25519_store_packed(ecc_int256_t *out, const ecc_25519_work_t *in);
|
|||
/** Checks if a point is the identity element of the Elliptic Curve group */
|
||||
int ecc_25519_is_identity(const ecc_25519_work_t *in);
|
||||
|
||||
/**
|
||||
* Negates a point of the Elliptic Curve
|
||||
*
|
||||
* The same pointer may be given for input and output
|
||||
*/
|
||||
void ecc_25519_negate(ecc_25519_work_t *out, const ecc_25519_work_t *in);
|
||||
|
||||
/**
|
||||
* Doubles a point of the Elliptic Curve
|
||||
*
|
||||
|
@ -102,6 +109,12 @@ void ecc_25519_double(ecc_25519_work_t *out, const ecc_25519_work_t *in);
|
|||
*/
|
||||
void ecc_25519_add(ecc_25519_work_t *out, const ecc_25519_work_t *in1, const ecc_25519_work_t *in2);
|
||||
|
||||
/**
|
||||
* Subtracts two points of the Elliptic Curve
|
||||
*
|
||||
* The same pointers may be given for input and output.
|
||||
*/
|
||||
void ecc_25519_sub(ecc_25519_work_t *out, const ecc_25519_work_t *in1, const ecc_25519_work_t *in2);
|
||||
|
||||
/**
|
||||
* Does a scalar multiplication of a point of the Elliptic Curve with an integer of a given bit length
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue