Static Public Member Functions |
static void | b_clear (uint8_t *a) |
static void | b_setbit (uint8_t *a, index_t i) |
static void | b_clearbit (uint8_t *a, index_t i) |
static bool | b_iszero (uint8_t *a) |
static void | b_copy (uint8_t *a, uint8_t *b) |
static void | b_add (uint8_t *a, uint8_t *b, uint8_t *c) |
static void | b_mul (uint8_t *a, uint8_t *b, uint8_t *c) |
static void | b_xor (uint8_t *a, uint8_t *b, uint8_t *c) |
static int8_t | b_compareto (uint8_t *a, uint8_t *b) |
static void | b_shiftleft (uint8_t *a, index_t n, uint8_t *b) |
static void | b_shiftleft1 (uint8_t *a, uint8_t *b) |
static void | b_shiftleft2 (uint8_t *a, uint8_t *b) |
static index_t | b_bitlength (uint8_t *a) |
static bool | b_testbit (uint8_t *a, index_t i) |
static bool | b_isequal (uint8_t *a, uint8_t *b) |
static void | b_sub (uint8_t *fromp, uint8_t *subp, int16_t lth) |
static void | b_mod (uint8_t *remp, uint8_t *modp, int16_t lth) |
static void | p_clear (Point *P0) |
static bool | p_iszero (Point *P0) |
static void | p_copy (Point *P0, Point *P1) |
static bool | p_isequal (Point *P0, Point *P1) |
static void | f_mod (uint8_t *a, uint8_t *b) |
static void | f_add (uint8_t *a, uint8_t *b, uint8_t *c) |
static void | f_mul (uint8_t *a, uint8_t *b, uint8_t *c) |
static void | f_inv (uint8_t *a, uint8_t *d) |
static void | c_add (Point *P1, Point *P2, Point *Q) |
static void | c_mul (uint8_t *n, Point *P0, Point *P1) |
static uint8_t * | gen_private_key (uint8_t *a, uint8_t b) |
static Point * | gen_public_key (uint8_t *a, Point *P0) |
static Point * | gen_shared_secret (uint8_t *a, Point *P0, Point *P1) |
static void | init () |
ECC Algorithm.
An implementation of the ECC Algorithm.