Searched refs:curve (Results 1 – 1 of 1) sorted by relevance
/linux-4.19.296/crypto/ |
D | ecc.c | 845 u64 *initial_z, const struct ecc_curve *curve, in ecc_point_mult() argument 853 u64 *curve_prime = curve->p; in ecc_point_mult() 858 carry = vli_add(sk[0], scalar, curve->n, ndigits); in ecc_point_mult() 859 vli_add(sk[1], sk[0], curve->n, ndigits); in ecc_point_mult() 916 static int __ecc_is_key_valid(const struct ecc_curve *curve, in __ecc_is_key_valid() argument 925 if (curve->g.ndigits != ndigits) in __ecc_is_key_valid() 931 vli_sub(res, curve->n, one, ndigits); in __ecc_is_key_valid() 943 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_is_key_valid() local 950 return __ecc_is_key_valid(curve, private_key, ndigits); in ecc_is_key_valid() 967 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_gen_privkey() local [all …]
|