Lines Matching refs:ndigits
42 #define ECC_POINT_INIT(x, y, ndigits) (struct ecc_point) { x, y, ndigits } argument
50 static inline void ecc_swap_digits(const void *in, u64 *out, unsigned int ndigits) in ecc_swap_digits() argument
55 for (i = 0; i < ndigits; i++) in ecc_swap_digits()
56 out[i] = get_unaligned_be64(&src[ndigits - 1 - i]); in ecc_swap_digits()
69 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits,
84 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey);
97 int ecc_make_pub_key(const unsigned int curve_id, unsigned int ndigits,
115 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
156 bool vli_is_zero(const u64 *vli, unsigned int ndigits);
168 int vli_cmp(const u64 *left, const u64 *right, unsigned int ndigits);
183 unsigned int ndigits);
192 void vli_from_be64(u64 *dest, const void *src, unsigned int ndigits);
201 void vli_from_le64(u64 *dest, const void *src, unsigned int ndigits);
212 unsigned int ndigits);
226 const u64 *mod, unsigned int ndigits);
236 unsigned int vli_num_bits(const u64 *vli, unsigned int ndigits);
245 struct ecc_point *ecc_alloc_point(unsigned int ndigits);