Searched refs:curve_id (Results 1 – 4 of 4) sorted by relevance
/crypto/ |
D | ecdh.c | 16 unsigned int curve_id; member 26 static unsigned int ecdh_supported_curve(unsigned int curve_id) in ecdh_supported_curve() argument 28 switch (curve_id) { in ecdh_supported_curve() 46 ndigits = ecdh_supported_curve(params.curve_id); in ecdh_set_secret() 50 ctx->curve_id = params.curve_id; in ecdh_set_secret() 54 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits, in ecdh_set_secret() 59 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits, in ecdh_set_secret() 104 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits, in ecdh_compute_value() 110 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits, in ecdh_compute_value()
|
D | ecdh_helper.c | 49 ptr = ecdh_pack_data(ptr, ¶ms->curve_id, sizeof(params->curve_id)); in crypto_ecdh_encode_key() 73 ptr = ecdh_unpack_data(¶ms->curve_id, ptr, sizeof(params->curve_id)); in crypto_ecdh_decode_key()
|
D | ecc.h | 83 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, 98 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey); 111 int ecc_make_pub_key(const unsigned int curve_id, unsigned int ndigits, 129 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
|
D | ecc.c | 45 static inline const struct ecc_curve *ecc_get_curve(unsigned int curve_id) in ecc_get_curve() argument 47 switch (curve_id) { in ecc_get_curve() 1317 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, in ecc_is_key_valid() argument 1321 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_is_key_valid() 1344 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey) in ecc_gen_privkey() argument 1346 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_gen_privkey() 1385 int ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, in ecc_make_pub_key() argument 1391 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_make_pub_key() 1484 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, in crypto_ecdh_shared_secret() argument 1493 const struct ecc_curve *curve = ecc_get_curve(curve_id); in crypto_ecdh_shared_secret()
|