Lines Matching defs:ndigits
72 u64 *out, unsigned int ndigits) in ecc_digits_from_bytes()
93 static u64 *ecc_alloc_digits_space(unsigned int ndigits) in ecc_alloc_digits_space()
108 struct ecc_point *ecc_alloc_point(unsigned int ndigits) in ecc_alloc_point()
146 static void vli_clear(u64 *vli, unsigned int ndigits) in vli_clear()
155 bool vli_is_zero(const u64 *vli, unsigned int ndigits) in vli_is_zero()
174 static bool vli_is_negative(const u64 *vli, unsigned int ndigits) in vli_is_negative()
180 static unsigned int vli_num_digits(const u64 *vli, unsigned int ndigits) in vli_num_digits()
194 unsigned int vli_num_bits(const u64 *vli, unsigned int ndigits) in vli_num_bits()
212 void vli_from_be64(u64 *dest, const void *src, unsigned int ndigits) in vli_from_be64()
222 void vli_from_le64(u64 *dest, const void *src, unsigned int ndigits) in vli_from_le64()
233 static void vli_set(u64 *dest, const u64 *src, unsigned int ndigits) in vli_set()
242 int vli_cmp(const u64 *left, const u64 *right, unsigned int ndigits) in vli_cmp()
261 unsigned int ndigits) in vli_lshift()
277 static void vli_rshift1(u64 *vli, unsigned int ndigits) in vli_rshift1()
293 unsigned int ndigits) in vli_add()
313 unsigned int ndigits) in vli_uadd()
335 unsigned int ndigits) in vli_sub()
356 unsigned int ndigits) in vli_usub()
416 unsigned int ndigits) in vli_mult()
453 unsigned int ndigits) in vli_umult()
473 static void vli_square(u64 *result, const u64 *left, unsigned int ndigits) in vli_square()
516 const u64 *mod, unsigned int ndigits) in vli_mod_add()
533 const u64 *mod, unsigned int ndigits) in vli_mod_sub()
555 const u64 *mod, unsigned int ndigits) in vli_mmod_special()
589 const u64 *mod, unsigned int ndigits) in vli_mmod_special2()
638 unsigned int ndigits) in vli_mmod_slow()
688 unsigned int ndigits) in vli_mmod_barrett()
716 const unsigned int ndigits = ECC_CURVE_NIST_P192_DIGITS; in vli_mmod_fast_192() local
744 const unsigned int ndigits = ECC_CURVE_NIST_P256_DIGITS; in vli_mmod_fast_256() local
827 const unsigned int ndigits = ECC_CURVE_NIST_P384_DIGITS; in vli_mmod_fast_384() local
937 const unsigned int ndigits = ECC_CURVE_NIST_P521_DIGITS; in vli_mmod_fast_521() local
961 const unsigned int ndigits = curve->g.ndigits; in vli_mmod_fast() local
1005 const u64 *mod, unsigned int ndigits) in vli_mod_mult_slow()
1040 unsigned int ndigits) in vli_mod_inv()
1136 const unsigned int ndigits = curve->g.ndigits; in ecc_point_double_jacobian() local
1209 const unsigned int ndigits = curve->g.ndigits; in xycz_initial_double() local
1237 const unsigned int ndigits = curve->g.ndigits; in xycz_add() local
1282 const unsigned int ndigits = curve->g.ndigits; in xycz_add_c() local
1332 unsigned int ndigits) in ecc_point_mult()
1399 unsigned int ndigits = curve->g.ndigits; in ecc_point_add() local
1423 unsigned int ndigits = curve->g.ndigits; in ecc_point_mult_shamir() local
1478 const u64 *private_key, unsigned int ndigits) in __ecc_is_key_valid()
1500 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, in ecc_is_key_valid()
1522 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, in ecc_gen_privkey()
1566 int ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, in ecc_make_pub_key()
1662 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, in crypto_ecdh_shared_secret()