Lines Matching refs:k
139 BIGNUM *k = NULL, *r = NULL, *X = NULL; in ecdsa_sign_setup() local
168 k = BN_secure_new(); /* this value is later returned in *kinvp */ in ecdsa_sign_setup()
171 if (k == NULL || r == NULL || X == NULL) { in ecdsa_sign_setup()
189 || !BN_set_bit(k, order_bits) in ecdsa_sign_setup()
202 res = ossl_gen_deterministic_nonce_rfc6979(k, order, in ecdsa_sign_setup()
209 res = ossl_bn_gen_dsa_nonce_fixed_top(k, order, priv_key, in ecdsa_sign_setup()
213 res = ossl_bn_priv_rand_range_fixed_top(k, order, 0, ctx); in ecdsa_sign_setup()
219 } while (ossl_bn_is_word_fixed_top(k, 0)); in ecdsa_sign_setup()
222 if (!EC_POINT_mul(group, tmp_point, k, NULL, NULL, ctx)) { in ecdsa_sign_setup()
239 if (!ossl_ec_group_do_inverse_ord(group, k, k, ctx)) { in ecdsa_sign_setup()
249 *kinvp = k; in ecdsa_sign_setup()
253 BN_clear_free(k); in ecdsa_sign_setup()