|
cx_err_t | cx_ecfp_add_point_no_throw (cx_curve_t curve, uint8_t *R, const uint8_t *P, const uint8_t *Q) |
| Adds two points of an elliptic curve. More...
|
static int | cx_ecfp_add_point (cx_curve_t curve, unsigned char *R, const unsigned char *P, const unsigned char *Q, unsigned int X_len) |
| Adds two points of an elliptic curve. More...
|
cx_err_t | cx_ecfp_scalar_mult_no_throw (cx_curve_t curve, uint8_t *P, const uint8_t *k, size_t k_len) |
| Performs a scalar multiplication over an elliptic curve. More...
|
static int | cx_ecfp_scalar_mult (cx_curve_t curve, unsigned char *P, unsigned int P_len, const unsigned char *k, unsigned int k_len) |
| Performs a scalar multiplication over an elliptic curve. More...
|
cx_err_t | cx_ecfp_init_public_key_no_throw (cx_curve_t curve, const uint8_t *rawkey, size_t key_len, cx_ecfp_public_key_t *key) |
| Initializes a public key. More...
|
static int | cx_ecfp_init_public_key (cx_curve_t curve, const unsigned char *rawkey, unsigned int key_len, cx_ecfp_public_key_t *key) |
| Initializes a public key. More...
|
cx_err_t | cx_ecfp_init_private_key_no_throw (cx_curve_t curve, const uint8_t *rawkey, size_t key_len, cx_ecfp_private_key_t *pvkey) |
| Initializes a private key. More...
|
static int | cx_ecfp_init_private_key (cx_curve_t curve, const unsigned char *rawkey, unsigned int key_len, cx_ecfp_private_key_t *pvkey) |
| Initializes a private key. More...
|
cx_err_t | cx_ecfp_generate_pair_no_throw (cx_curve_t curve, cx_ecfp_public_key_t *pubkey, cx_ecfp_private_key_t *privkey, bool keepprivate) |
| Generates a key pair with SHA-512 hash function. More...
|
static int | cx_ecfp_generate_pair (cx_curve_t curve, cx_ecfp_public_key_t *pubkey, cx_ecfp_private_key_t *privkey, int keepprivate) |
| Generates a key pair with SHA-512 hash function. More...
|
cx_err_t | cx_ecfp_generate_pair2_no_throw (cx_curve_t curve, cx_ecfp_public_key_t *pubkey, cx_ecfp_private_key_t *privkey, bool keepprivate, cx_md_t hashID) |
| Generates a key pair. More...
|
static int | cx_ecfp_generate_pair2 (cx_curve_t curve, cx_ecfp_public_key_t *pubkey, cx_ecfp_private_key_t *privkey, int keepprivate, cx_md_t hashID) |
| Generates a key pair. More...
|
cx_err_t | cx_eddsa_get_public_key_no_throw (const cx_ecfp_private_key_t *pvkey, cx_md_t hashID, cx_ecfp_public_key_t *pukey, uint8_t *a, size_t a_len, uint8_t *h, size_t h_len) |
| Retrieves an EDDSA public key. More...
|
static void | cx_eddsa_get_public_key (const cx_ecfp_private_key_t *pvkey, cx_md_t hashID, cx_ecfp_public_key_t *pukey, unsigned char *a, unsigned int a_len, unsigned char *h, unsigned int h_len) |
| Retrieves an EDDSA public key. More...
|
cx_err_t | cx_edwards_compress_point_no_throw (cx_curve_t curve, uint8_t *p, size_t p_len) |
| Compresses a point according to RFC8032 . More...
|
static void | cx_edwards_compress_point (cx_curve_t curve, uint8_t *p, size_t p_len) |
| Compresses a point according to RFC8032 . More...
|
cx_err_t | cx_edwards_decompress_point_no_throw (cx_curve_t curve, uint8_t *p, size_t p_len) |
| Decompresses a point according to RFC8032 . More...
|
static void | cx_edwards_decompress_point (cx_curve_t curve, uint8_t *p, size_t p_len) |
| Decompresses a point according to RFC8032 . More...
|
static void | cx_edward_compress_point (cx_curve_t curve, uint8_t *p, size_t p_len) |
static void | cx_edward_decompress_point (cx_curve_t curve, uint8_t *p, size_t p_len) |
Key pair generation based on elliptic curves.
Private and public keys initialization and key pair generation based on elliptic curves.