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()
57 bn_words_to_big_endian(out, len, in->words, group->order.width); in ec_scalar_to_bytes()
68 bn_big_endian_to_words(out->words, group->order.width, in, len); in ec_scalar_from_bytes()
70 if (!bn_less_than_words(out->words, group->order.d, group->order.width)) { in ec_scalar_from_bytes()
79 const BN_ULONG *words, size_t num) { in ec_scalar_reduce() argument
81 bn_from_montgomery_small(out->words, group->order.width, words, num, in ec_scalar_reduce()
91 bn_mod_add_words(r->words, a->words, b->words, order->d, tmp, order->width); in ec_scalar_add()
99 bn_mod_sub_words(r->words, a->words, b->words, order->d, tmp, order->width); in ec_scalar_sub()
112 bn_select_words(out->words, mask, a->words, b->words, order->width); in ec_scalar_select()
118 bn_to_montgomery_small(r->words, a->words, order->width, group->order_mont); in ec_scalar_to_montgomery()
124 bn_from_montgomery_small(r->words, order->width, a->words, order->width, in ec_scalar_from_montgomery()
131 bn_mod_mul_montgomery_small(r->words, a->words, b->words, order->width, in ec_scalar_mul_montgomery()
138 bn_mod_inverse0_prime_mont_small(r->words, a->words, order->width, in ec_simple_scalar_inv0_montgomery()