ecc_point
bool ecc_point_is_zero(const struct ecc_point *point)
void ecc_free_point(struct ecc_point *p)
static void ecc_point_mult(struct ecc_point *result,
const struct ecc_point *point, const u64 *scalar,
static void ecc_point_add(const struct ecc_point *result,
const struct ecc_point *p, const struct ecc_point *q,
void ecc_point_mult_shamir(const struct ecc_point *result,
const u64 *u1, const struct ecc_point *p,
const u64 *u2, const struct ecc_point *q,
struct ecc_point sum = ECC_POINT_INIT(sump[0], sump[1], ndigits);
const struct ecc_point *points[4];
const struct ecc_point *point;
struct ecc_point *pk;
struct ecc_point *pk)
struct ecc_point *pk)
struct ecc_point *nQ;
struct ecc_point *product, *pk;
struct ecc_point *ecc_alloc_point(unsigned int ndigits)
struct ecc_point *p;
struct ecc_point pub_key;
struct ecc_point res = ECC_POINT_INIT(x1, y1, ndigits);
struct ecc_point pub_key;
struct ecc_point cc = ECC_POINT_INIT(s, e, ndigits); /* reuse s, e */
struct ecc_point *result,
const struct ecc_point *point,
struct ecc_point *pk)
struct ecc_point *pk)
struct ecc_point *nQ;
struct ecc_point *pk, *result;
struct ecc_point *pk;
struct ecc_point g;
struct ecc_point *pk);
struct ecc_point *pk);
struct ecc_point *ecc_alloc_point(unsigned int ndigits);
void ecc_free_point(struct ecc_point *p);
bool ecc_point_is_zero(const struct ecc_point *point);
void ecc_point_mult_shamir(const struct ecc_point *result,
const u64 *x, const struct ecc_point *p,
const u64 *y, const struct ecc_point *q,
#define ECC_POINT_INIT(x, y, ndigits) (struct ecc_point) { x, y, ndigits }