Lines Matching refs:bn
83 ec_window_bits(const BIGNUM *bn) in ec_window_bits() argument
85 int bits = BN_num_bits(bn); in ec_window_bits()
107 ec_compute_wnaf(const BIGNUM *bn, signed char *digits, size_t num_digits) in ec_compute_wnaf() argument
113 if (num_digits != BN_num_bits(bn) + 1) { in ec_compute_wnaf()
118 sign = BN_is_negative(bn) ? -1 : 1; in ec_compute_wnaf()
120 wbits = ec_window_bits(bn); in ec_compute_wnaf()
128 if (BN_is_bit_set(bn, i)) in ec_compute_wnaf()
153 window += bit * BN_is_bit_set(bn, i + wbits + 1); in ec_compute_wnaf()
262 ec_wnaf_new(const EC_GROUP *group, const EC_POINT *point, const BIGNUM *bn, in ec_wnaf_new() argument
270 wnaf->num_digits = BN_num_bits(bn) + 1; in ec_wnaf_new()
275 if (!ec_compute_wnaf(bn, wnaf->digits, wnaf->num_digits)) in ec_wnaf_new()
278 wnaf->num_multiples = 1ULL << (ec_window_bits(bn) - 1); in ec_wnaf_new()