Lines Matching refs:q
114 if (rsa->q == NULL) in ossl_rsa_fips186_4_gen_prob_primes()
115 rsa->q = BN_secure_new(); in ossl_rsa_fips186_4_gen_prob_primes()
116 if (rsa->p == NULL || rsa->q == NULL) in ossl_rsa_fips186_4_gen_prob_primes()
119 BN_set_flags(rsa->q, BN_FLG_CONSTTIME); in ossl_rsa_fips186_4_gen_prob_primes()
127 if (!ossl_bn_rsa_fips186_4_gen_prob_primes(rsa->q, Xqo, q1, q2, Xq, Xq1, in ossl_rsa_fips186_4_gen_prob_primes()
139 ok = ossl_rsa_check_pminusq_diff(tmp, rsa->p, rsa->q, nbits); in ossl_rsa_fips186_4_gen_prob_primes()
156 BN_clear_free(rsa->q); in ossl_rsa_fips186_4_gen_prob_primes()
157 rsa->q = NULL; in ossl_rsa_fips186_4_gen_prob_primes()
258 if (ossl_rsa_get_lcm(ctx, rsa->p, rsa->q, lcm, gcd, p1, q1, p1q1) != 1) in ossl_rsa_sp800_56b_derive_params_from_pq()
289 if (rsa->n == NULL || !BN_mul(rsa->n, rsa->p, rsa->q, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq()
317 if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
407 if (info == NULL && BN_cmp(rsa->p, rsa->q) < 0) { in ossl_rsa_sp800_56b_generate_key()
409 rsa->p = rsa->q; in ossl_rsa_sp800_56b_generate_key()
410 rsa->q = tmp; in ossl_rsa_sp800_56b_generate_key()