Lines Matching refs:k
146 BIGNUM *k = NULL; in ossl_ec_scalar_mul_ladder() local
190 k = BN_CTX_get(ctx); in ossl_ec_scalar_mul_ladder()
191 if (k == NULL) { in ossl_ec_scalar_mul_ladder()
209 if ((bn_wexpand(k, group_top + 2) == NULL) in ossl_ec_scalar_mul_ladder()
215 if (!BN_copy(k, scalar)) { in ossl_ec_scalar_mul_ladder()
220 BN_set_flags(k, BN_FLG_CONSTTIME); in ossl_ec_scalar_mul_ladder()
222 if ((BN_num_bits(k) > cardinality_bits) || (BN_is_negative(k))) { in ossl_ec_scalar_mul_ladder()
227 if (!BN_nnmod(k, k, cardinality, ctx)) { in ossl_ec_scalar_mul_ladder()
233 if (!BN_add(lambda, k, cardinality)) { in ossl_ec_scalar_mul_ladder()
238 if (!BN_add(k, lambda, cardinality)) { in ossl_ec_scalar_mul_ladder()
247 BN_consttime_swap(kbit, k, lambda, group_top + 2); in ossl_ec_scalar_mul_ladder()
347 kbit = BN_is_bit_set(k, i) ^ pbit; in ossl_ec_scalar_mul_ladder()
414 int k; in ossl_ec_wNAF_mul() local
711 for (k = max_len - 1; k >= 0; k--) { in ossl_ec_wNAF_mul()
718 if (wNAF_len[i] > (size_t)k) { in ossl_ec_wNAF_mul()
719 int digit = wNAF[i][k]; in ossl_ec_wNAF_mul()
928 size_t k; in ossl_ec_wNAF_precompute_mult() local
937 for (k = 2; k < blocksize; k++) { in ossl_ec_wNAF_precompute_mult()