Lines Matching refs:p1
27 BIGNUM *r = NULL, *p1 = NULL, *q1 = NULL; in ossl_rsa_check_crt_components() local
38 p1 = BN_CTX_get(ctx); in ossl_rsa_check_crt_components()
42 BN_set_flags(p1, BN_FLG_CONSTTIME); in ossl_rsa_check_crt_components()
50 && (BN_copy(p1, rsa->p) != NULL) in ossl_rsa_check_crt_components()
51 && BN_sub_word(p1, 1) in ossl_rsa_check_crt_components()
57 && (BN_cmp(rsa->dmp1, p1) < 0) in ossl_rsa_check_crt_components()
65 && BN_mod_mul(r, rsa->dmp1, rsa->e, p1, ctx) in ossl_rsa_check_crt_components()
74 BN_clear(p1); in ossl_rsa_check_crt_components()
139 BIGNUM *p1 = NULL, *gcd = NULL; in ossl_rsa_check_prime_factor() local
148 p1 = BN_CTX_get(ctx); in ossl_rsa_check_prime_factor()
151 BN_set_flags(p1, BN_FLG_CONSTTIME); in ossl_rsa_check_prime_factor()
159 && (BN_copy(p1, p) != NULL) in ossl_rsa_check_prime_factor()
160 && BN_sub_word(p1, 1) in ossl_rsa_check_prime_factor()
161 && BN_gcd(gcd, p1, e, ctx) in ossl_rsa_check_prime_factor()
164 BN_clear(p1); in ossl_rsa_check_prime_factor()
178 BIGNUM *r, *p1, *q1, *lcm, *p1q1, *gcd; in ossl_rsa_check_private_exponent() local
186 p1 = BN_CTX_get(ctx); in ossl_rsa_check_private_exponent()
193 BN_set_flags(p1, BN_FLG_CONSTTIME); in ossl_rsa_check_private_exponent()
204 && (ossl_rsa_get_lcm(ctx, rsa->p, rsa->q, lcm, gcd, p1, q1, in ossl_rsa_check_private_exponent()
213 BN_clear(p1); in ossl_rsa_check_private_exponent()
266 BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1, in ossl_rsa_get_lcm() argument
269 return BN_sub(p1, p, BN_value_one()) /* p-1 */ in ossl_rsa_get_lcm()
271 && BN_mul(p1q1, p1, q1, ctx) /* (p-1)(q-1) */ in ossl_rsa_get_lcm()
272 && BN_gcd(gcd, p1, q1, ctx) in ossl_rsa_get_lcm()