Lines Matching refs:q
226 BIGNUM *p = NULL, *q = NULL, *e = NULL, *d = NULL, *n = NULL; in test_check_private_exponent() local
231 && TEST_ptr(q = BN_new()) in test_check_private_exponent()
234 && TEST_true(BN_set_word(q, 17)) in test_check_private_exponent()
235 && TEST_true(RSA_set0_factors(key, p, q)); in test_check_private_exponent()
238 BN_free(q); in test_check_private_exponent()
287 BIGNUM *p = NULL, *q = NULL, *e = NULL; in test_check_crt_components() local
292 && TEST_ptr(q = BN_new()) in test_check_crt_components()
295 && TEST_true(BN_set_word(q, Q)) in test_check_crt_components()
297 && TEST_true(RSA_set0_factors(key, p, q)); in test_check_crt_components()
300 BN_free(q); in test_check_crt_components()
350 int p, q, e; member
361 BIGNUM *p = NULL, *q = NULL, *e = NULL; in test_derive_params_from_pq_fail() local
366 && TEST_ptr(q = BN_new()) in test_derive_params_from_pq_fail()
369 && TEST_true(BN_set_word(q, derive_from_pq_tests[tst].q)) in test_derive_params_from_pq_fail()
371 && TEST_true(RSA_set0_factors(key, p, q)); in test_derive_params_from_pq_fail()
374 BN_free(q); in test_derive_params_from_pq_fail()
389 BIGNUM *tmp = NULL, *p = NULL, *q = NULL; in test_pq_diff() local
393 && TEST_ptr(q = BN_new()) in test_pq_diff()
396 && TEST_true(BN_set_word(q, 1+2)) in test_pq_diff()
397 && TEST_false(ossl_rsa_check_pminusq_diff(tmp, p, q, 202)) in test_pq_diff()
399 && TEST_true(BN_set_word(q, 1+3)) in test_pq_diff()
400 && TEST_true(ossl_rsa_check_pminusq_diff(tmp, p, q, 202)) in test_pq_diff()
402 && TEST_true(BN_set_word(q, 1)) in test_pq_diff()
403 && TEST_true(ossl_rsa_check_pminusq_diff(tmp, p, q, 202)); in test_pq_diff()
405 BN_free(q); in test_pq_diff()
415 BIGNUM *p = NULL, *q = NULL, *n = NULL, *e = NULL, *d = NULL; in test_invalid_keypair() local
423 && TEST_ptr(q = bn_load_new(cav_q, sizeof(cav_q))) in test_invalid_keypair()
424 && TEST_true(RSA_set0_factors(key, p, q)); in test_invalid_keypair()
427 BN_free(q); in test_invalid_keypair()
467 && TEST_true(BN_mul(n, p, q, ctx)) in test_invalid_keypair()
470 && TEST_true(BN_mul(n, p, q, ctx)) in test_invalid_keypair()
472 && TEST_true(BN_sub_word(q, 2)) in test_invalid_keypair()
473 && TEST_true(BN_mul(n, p, q, ctx)) in test_invalid_keypair()
475 && TEST_true(BN_add_word(q, 2)) in test_invalid_keypair()
476 && TEST_true(BN_mul(n, p, q, ctx)); in test_invalid_keypair()