Lines Matching refs:q
72 if (Xq && rsa->q == NULL) { in RSA_X931_derive_ex()
73 rsa->q = BN_new(); in RSA_X931_derive_ex()
74 if (rsa->q == NULL) in RSA_X931_derive_ex()
76 if (!BN_X931_derive_prime_ex(rsa->q, q1, q2, in RSA_X931_derive_ex()
81 if (rsa->p == NULL || rsa->q == NULL) { in RSA_X931_derive_ex()
96 if (!BN_mul(rsa->n, rsa->p, rsa->q, ctx)) in RSA_X931_derive_ex()
102 if (!BN_sub(r2, rsa->q, BN_value_one())) in RSA_X931_derive_ex()
136 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2); in RSA_X931_derive_ex()
170 rsa->q = BN_new(); in RSA_X931_generate_key_ex()
171 if (rsa->p == NULL || rsa->q == NULL) in RSA_X931_generate_key_ex()
180 if (!BN_X931_generate_prime_ex(rsa->q, NULL, NULL, NULL, NULL, Xq, in RSA_X931_generate_key_ex()