Lines Matching refs:ndigits
44 * @ndigits: Length of vlis in u64 qwords.
49 u8 ndigits;
52 #define ECC_POINT_INIT(x, y, ndigits) (struct ecc_point) { x, y, ndigits }
60 * pre-calculated value 'mu' is appended to the @p after ndigits.
77 * ecc_swap_digits() - Copy ndigits from big endian array to native array
80 * @ndigits: Number of digits to copy
82 static inline void ecc_swap_digits(const u64 *in, u64 *out, unsigned int ndigits)
87 for (i = 0; i < ndigits; i++)
88 out[i] = be64_to_cpu(src[ndigits - 1 - i]);
103 * @ndigits: curve's number of digits
109 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits,
118 * @ndigits: curve number of digits
124 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey);
130 * @ndigits: curve's number of digits
137 int ecc_make_pub_key(const unsigned int curve_id, unsigned int ndigits,
144 * @ndigits: curve's number of digits
155 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
194 * @ndigits: length of the @vli
196 bool vli_is_zero(const u64 *vli, unsigned int ndigits);
203 * @ndigits: length of both vlis
208 int vli_cmp(const u64 *left, const u64 *right, unsigned int ndigits);
216 * @ndigits: length of all vlis
223 unsigned int ndigits);
230 * @ndigits: length of both vli and array
232 void vli_from_be64(u64 *dest, const void *src, unsigned int ndigits);
239 * @ndigits: length of both vli and array
241 void vli_from_le64(u64 *dest, const void *src, unsigned int ndigits);
249 * @ndigits: length of all vlis
252 unsigned int ndigits);
261 * @ndigits: length of all vlis
266 const u64 *mod, unsigned int ndigits);