Lines Matching refs:ndigits

42 #define ECC_POINT_INIT(x, y, ndigits)	(struct ecc_point) { x, y, ndigits }
45 * ecc_swap_digits() - Copy ndigits from big endian array to native array
48 * @ndigits: Number of digits to copy
50 static inline void ecc_swap_digits(const void *in, u64 *out, unsigned int ndigits)
55 for (i = 0; i < ndigits; i++)
56 out[i] = get_unaligned_be64(&src[ndigits - 1 - i]);
63 * @ndigits: curve's number of digits
69 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits,
78 * @ndigits: curve number of digits
84 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey);
90 * @ndigits: curve's number of digits
97 int ecc_make_pub_key(const unsigned int curve_id, unsigned int ndigits,
104 * @ndigits: curve's number of digits
115 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
154 * @ndigits: length of the @vli
156 bool vli_is_zero(const u64 *vli, unsigned int ndigits);
163 * @ndigits: length of both vlis
168 int vli_cmp(const u64 *left, const u64 *right, unsigned int ndigits);
176 * @ndigits: length of all vlis
183 unsigned int ndigits);
190 * @ndigits: length of both vli and array
192 void vli_from_be64(u64 *dest, const void *src, unsigned int ndigits);
199 * @ndigits: length of both vli and array
201 void vli_from_le64(u64 *dest, const void *src, unsigned int ndigits);
209 * @ndigits: length of all vlis
212 unsigned int ndigits);
221 * @ndigits: length of all vlis
226 const u64 *mod, unsigned int ndigits);
232 * @ndigits: Length of the @vli
236 unsigned int vli_num_bits(const u64 *vli, unsigned int ndigits);
241 * @ndigits: Length of vlis in u64 qwords.
245 struct ecc_point *ecc_alloc_point(unsigned int ndigits);