|
const mbedtls_ecp_curve_info * | mbedtls_ecp_curve_list (void) |
| Get the list of supported curves in order of preferrence (full information) More...
|
|
const mbedtls_ecp_group_id * | mbedtls_ecp_grp_id_list (void) |
| Get the list of supported curves in order of preferrence (grp_id only) More...
|
|
const mbedtls_ecp_curve_info * | mbedtls_ecp_curve_info_from_grp_id (mbedtls_ecp_group_id grp_id) |
| Get curve information from an internal group identifier. More...
|
|
const mbedtls_ecp_curve_info * | mbedtls_ecp_curve_info_from_tls_id (uint16_t tls_id) |
| Get curve information from a TLS NamedCurve value. More...
|
|
const mbedtls_ecp_curve_info * | mbedtls_ecp_curve_info_from_name (const char *name) |
| Get curve information from a human-readable name. More...
|
|
static ecp_curve_type | ecp_get_type (const mbedtls_ecp_group *grp) |
|
void | mbedtls_ecp_point_init (mbedtls_ecp_point *pt) |
| Initialize a point (as zero) More...
|
|
void | mbedtls_ecp_group_init (mbedtls_ecp_group *grp) |
| Initialize a group (to something meaningless) More...
|
|
void | mbedtls_ecp_keypair_init (mbedtls_ecp_keypair *key) |
| Initialize a key pair (as an invalid one) More...
|
|
void | mbedtls_ecp_point_free (mbedtls_ecp_point *pt) |
| Free the components of a point. More...
|
|
void | mbedtls_ecp_group_free (mbedtls_ecp_group *grp) |
| Free the components of an ECP group. More...
|
|
void | mbedtls_ecp_keypair_free (mbedtls_ecp_keypair *key) |
| Free the components of a key pair. More...
|
|
int | mbedtls_ecp_copy (mbedtls_ecp_point *P, const mbedtls_ecp_point *Q) |
| Copy the contents of point Q into P. More...
|
|
int | mbedtls_ecp_group_copy (mbedtls_ecp_group *dst, const mbedtls_ecp_group *src) |
| Copy the contents of a group object. More...
|
|
int | mbedtls_ecp_set_zero (mbedtls_ecp_point *pt) |
| Set a point to zero. More...
|
|
int | mbedtls_ecp_is_zero (mbedtls_ecp_point *pt) |
| Tell if a point is zero. More...
|
|
int | mbedtls_ecp_point_cmp (const mbedtls_ecp_point *P, const mbedtls_ecp_point *Q) |
| Compare two points. More...
|
|
int | mbedtls_ecp_point_read_string (mbedtls_ecp_point *P, int radix, const char *x, const char *y) |
| Import a non-zero point from two ASCII strings. More...
|
|
int | mbedtls_ecp_point_write_binary (const mbedtls_ecp_group *grp, const mbedtls_ecp_point *P, int format, size_t *olen, unsigned char *buf, size_t buflen) |
| Export a point into unsigned binary data. More...
|
|
int | mbedtls_ecp_point_read_binary (const mbedtls_ecp_group *grp, mbedtls_ecp_point *pt, const unsigned char *buf, size_t ilen) |
| Import a point from unsigned binary data. More...
|
|
int | mbedtls_ecp_tls_read_point (const mbedtls_ecp_group *grp, mbedtls_ecp_point *pt, const unsigned char **buf, size_t buf_len) |
| Import a point from a TLS ECPoint record. More...
|
|
int | mbedtls_ecp_tls_write_point (const mbedtls_ecp_group *grp, const mbedtls_ecp_point *pt, int format, size_t *olen, unsigned char *buf, size_t blen) |
| Export a point as a TLS ECPoint record. More...
|
|
int | mbedtls_ecp_tls_read_group (mbedtls_ecp_group *grp, const unsigned char **buf, size_t len) |
| Set a group from a TLS ECParameters record. More...
|
|
int | mbedtls_ecp_tls_write_group (const mbedtls_ecp_group *grp, size_t *olen, unsigned char *buf, size_t blen) |
| Write the TLS ECParameters record for a group. More...
|
|
static int | ecp_modp (mbedtls_mpi *N, const mbedtls_ecp_group *grp) |
|
static int | ecp_normalize_jac (const mbedtls_ecp_group *grp, mbedtls_ecp_point *pt) |
|
static int | ecp_normalize_jac_many (const mbedtls_ecp_group *grp, mbedtls_ecp_point *T[], size_t t_len) |
|
static int | ecp_safe_invert_jac (const mbedtls_ecp_group *grp, mbedtls_ecp_point *Q, unsigned char inv) |
|
static int | ecp_double_jac (const mbedtls_ecp_group *grp, mbedtls_ecp_point *R, const mbedtls_ecp_point *P) |
|
static int | ecp_add_mixed (const mbedtls_ecp_group *grp, mbedtls_ecp_point *R, const mbedtls_ecp_point *P, const mbedtls_ecp_point *Q) |
|
static int | ecp_randomize_jac (const mbedtls_ecp_group *grp, mbedtls_ecp_point *pt, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) |
|
static void | ecp_comb_fixed (unsigned char x[], size_t d, unsigned char w, const mbedtls_mpi *m) |
|
static int | ecp_precompute_comb (const mbedtls_ecp_group *grp, mbedtls_ecp_point T[], const mbedtls_ecp_point *P, unsigned char w, size_t d) |
|
static int | ecp_select_comb (const mbedtls_ecp_group *grp, mbedtls_ecp_point *R, const mbedtls_ecp_point T[], unsigned char t_len, unsigned char i) |
|
static int | ecp_mul_comb_core (const mbedtls_ecp_group *grp, mbedtls_ecp_point *R, const mbedtls_ecp_point T[], unsigned char t_len, const unsigned char x[], size_t d, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) |
|
static int | ecp_mul_comb (mbedtls_ecp_group *grp, mbedtls_ecp_point *R, const mbedtls_mpi *m, const mbedtls_ecp_point *P, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) |
|
static int | ecp_normalize_mxz (const mbedtls_ecp_group *grp, mbedtls_ecp_point *P) |
|
static int | ecp_randomize_mxz (const mbedtls_ecp_group *grp, mbedtls_ecp_point *P, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) |
|
static int | ecp_double_add_mxz (const mbedtls_ecp_group *grp, mbedtls_ecp_point *R, mbedtls_ecp_point *S, const mbedtls_ecp_point *P, const mbedtls_ecp_point *Q, const mbedtls_mpi *d) |
|
static int | ecp_mul_mxz (mbedtls_ecp_group *grp, mbedtls_ecp_point *R, const mbedtls_mpi *m, const mbedtls_ecp_point *P, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) |
|
int | mbedtls_ecp_mul (mbedtls_ecp_group *grp, mbedtls_ecp_point *R, const mbedtls_mpi *m, const mbedtls_ecp_point *P, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) |
| Multiplication by an integer: R = m * P (Not thread-safe to use same group in multiple threads) More...
|
|
static int | ecp_check_pubkey_sw (const mbedtls_ecp_group *grp, const mbedtls_ecp_point *pt) |
|
static int | mbedtls_ecp_mul_shortcuts (mbedtls_ecp_group *grp, mbedtls_ecp_point *R, const mbedtls_mpi *m, const mbedtls_ecp_point *P) |
|
int | mbedtls_ecp_muladd (mbedtls_ecp_group *grp, mbedtls_ecp_point *R, const mbedtls_mpi *m, const mbedtls_ecp_point *P, const mbedtls_mpi *n, const mbedtls_ecp_point *Q) |
| Multiplication and addition of two points by integers: R = m * P + n * Q (Not thread-safe to use same group in multiple threads) More...
|
|
static int | ecp_check_pubkey_mx (const mbedtls_ecp_group *grp, const mbedtls_ecp_point *pt) |
|
int | mbedtls_ecp_check_pubkey (const mbedtls_ecp_group *grp, const mbedtls_ecp_point *pt) |
| Check that a point is a valid public key on this curve. More...
|
|
int | mbedtls_ecp_check_privkey (const mbedtls_ecp_group *grp, const mbedtls_mpi *d) |
| Check that an mbedtls_mpi is a valid private key for this curve. More...
|
|
int | mbedtls_ecp_gen_keypair_base (mbedtls_ecp_group *grp, const mbedtls_ecp_point *G, mbedtls_mpi *d, mbedtls_ecp_point *Q, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) |
| Generate a keypair with configurable base point. More...
|
|
int | mbedtls_ecp_gen_keypair (mbedtls_ecp_group *grp, mbedtls_mpi *d, mbedtls_ecp_point *Q, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) |
| Generate a keypair. More...
|
|
int | mbedtls_ecp_gen_key (mbedtls_ecp_group_id grp_id, mbedtls_ecp_keypair *key, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng) |
| Generate a keypair. More...
|
|
int | mbedtls_ecp_check_pub_priv (const mbedtls_ecp_keypair *pub, const mbedtls_ecp_keypair *prv) |
| Check a public-private key pair. More...
|
|
int | mbedtls_ecp_self_test (int verbose) |
| Checkup routine. More...
|
|