Lines Matching refs:words
26 if (!bn_copy_words(out->words, group->order.width, in) || in ec_bignum_to_scalar()
27 !bn_less_than_words(out->words, group->order.d, group->order.width)) { in ec_bignum_to_scalar()
36 return OPENSSL_memcmp(a->words, b->words, in ec_scalar_equal_vartime()
43 mask |= a->words[i]; in ec_scalar_is_zero()
50 return bn_rand_range_words(out->words, 1, group->order.d, group->order.width, in ec_random_nonzero_scalar()
76 if (!bn_less_than_words(out->words, group->order.d, group->order.width)) { in ec_scalar_from_bytes()
85 const BN_ULONG *words, size_t num) { in ec_scalar_reduce() argument
87 bn_from_montgomery_small(out->words, group->order.width, words, num, in ec_scalar_reduce()
97 bn_mod_add_words(r->words, a->words, b->words, order->d, tmp, order->width); in ec_scalar_add()
105 bn_mod_sub_words(r->words, a->words, b->words, order->d, tmp, order->width); in ec_scalar_sub()
118 bn_select_words(out->words, mask, a->words, b->words, order->width); in ec_scalar_select()
124 bn_to_montgomery_small(r->words, a->words, order->width, group->order_mont); in ec_scalar_to_montgomery()
130 bn_from_montgomery_small(r->words, order->width, a->words, order->width, in ec_scalar_from_montgomery()
137 bn_mod_mul_montgomery_small(r->words, a->words, b->words, order->width, in ec_scalar_mul_montgomery()
144 bn_mod_inverse0_prime_mont_small(r->words, a->words, order->width, in ec_simple_scalar_inv0_montgomery()