Wiselib
Static Public Member Functions
wiselib::ECC Class Reference

ECC Algorithm. More...

#include <eccf2m.h>

List of all members.

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_tgen_private_key (uint8_t *a, uint8_t b)
static Pointgen_public_key (uint8_t *a, Point *P0)
static Pointgen_shared_secret (uint8_t *a, Point *P0, Point *P1)
static void init ()

Detailed Description

ECC Algorithm.

An implementation of the ECC Algorithm.


Member Function Documentation

static void wiselib::ECC::b_add ( uint8_t a,
uint8_t b,
uint8_t c 
) [inline, static]
static index_t wiselib::ECC::b_bitlength ( uint8_t a) [inline, static]
static void wiselib::ECC::b_clear ( uint8_t a) [inline, static]
static void wiselib::ECC::b_clearbit ( uint8_t a,
index_t  i 
) [inline, static]
static int8_t wiselib::ECC::b_compareto ( uint8_t a,
uint8_t b 
) [inline, static]
static void wiselib::ECC::b_copy ( uint8_t a,
uint8_t b 
) [inline, static]
static bool wiselib::ECC::b_isequal ( uint8_t a,
uint8_t b 
) [inline, static]
static bool wiselib::ECC::b_iszero ( uint8_t a) [inline, static]
static void wiselib::ECC::b_mod ( uint8_t remp,
uint8_t modp,
int16_t  lth 
) [inline, static]
static void wiselib::ECC::b_mul ( uint8_t a,
uint8_t b,
uint8_t c 
) [inline, static]
static void wiselib::ECC::b_setbit ( uint8_t a,
index_t  i 
) [inline, static]
static void wiselib::ECC::b_shiftleft ( uint8_t a,
index_t  n,
uint8_t b 
) [inline, static]
static void wiselib::ECC::b_shiftleft1 ( uint8_t a,
uint8_t b 
) [inline, static]
static void wiselib::ECC::b_shiftleft2 ( uint8_t a,
uint8_t b 
) [inline, static]
static void wiselib::ECC::b_sub ( uint8_t fromp,
uint8_t subp,
int16_t  lth 
) [inline, static]
static bool wiselib::ECC::b_testbit ( uint8_t a,
index_t  i 
) [inline, static]
static void wiselib::ECC::b_xor ( uint8_t a,
uint8_t b,
uint8_t c 
) [inline, static]
static void wiselib::ECC::c_add ( Point P1,
Point P2,
Point Q 
) [inline, static]
static void wiselib::ECC::c_mul ( uint8_t n,
Point P0,
Point P1 
) [inline, static]
static void wiselib::ECC::f_add ( uint8_t a,
uint8_t b,
uint8_t c 
) [inline, static]
static void wiselib::ECC::f_inv ( uint8_t a,
uint8_t d 
) [inline, static]
static void wiselib::ECC::f_mod ( uint8_t a,
uint8_t b 
) [inline, static]
static void wiselib::ECC::f_mul ( uint8_t a,
uint8_t b,
uint8_t c 
) [inline, static]
static uint8_t* wiselib::ECC::gen_private_key ( uint8_t a,
uint8_t  b 
) [inline, static]
static Point* wiselib::ECC::gen_public_key ( uint8_t a,
Point P0 
) [inline, static]
static Point* wiselib::ECC::gen_shared_secret ( uint8_t a,
Point P0,
Point P1 
) [inline, static]
static void wiselib::ECC::init ( void  ) [inline, static]
static void wiselib::ECC::p_clear ( Point P0) [inline, static]
static void wiselib::ECC::p_copy ( Point P0,
Point P1 
) [inline, static]
static bool wiselib::ECC::p_isequal ( Point P0,
Point P1 
) [inline, static]
static bool wiselib::ECC::p_iszero ( Point P0) [inline, static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines