Lines Matching refs:e

111     BIGNUM *e = NULL;  in test_check_public_exponent()  local
113 ret = TEST_ptr(e = BN_new()) in test_check_public_exponent()
115 && TEST_true(BN_set_word(e, 1)) in test_check_public_exponent()
116 && TEST_false(ossl_rsa_check_public_exponent(e)) in test_check_public_exponent()
118 && TEST_true(BN_set_word(e, 65536)) in test_check_public_exponent()
119 && TEST_false(ossl_rsa_check_public_exponent(e)) in test_check_public_exponent()
121 && TEST_true(BN_set_word(e, 3)) in test_check_public_exponent()
122 && TEST_true(ossl_rsa_check_public_exponent(e)) in test_check_public_exponent()
123 && TEST_true(BN_set_word(e, 17)) in test_check_public_exponent()
124 && TEST_true(ossl_rsa_check_public_exponent(e)) in test_check_public_exponent()
125 && TEST_true(BN_set_word(e, 65537)) in test_check_public_exponent()
126 && TEST_true(ossl_rsa_check_public_exponent(e)) in test_check_public_exponent()
128 && TEST_true(BN_lshift(e, BN_value_one(), 256)) in test_check_public_exponent()
129 && TEST_true(BN_add(e, e, BN_value_one())) in test_check_public_exponent()
130 && TEST_true(ossl_rsa_check_public_exponent(e)); in test_check_public_exponent()
131 BN_free(e); in test_check_public_exponent()
185 BIGNUM *p = NULL, *e = NULL; in test_check_prime_factor() local
197 && TEST_ptr(e = BN_new()) in test_check_prime_factor()
200 && TEST_true(BN_set_word(e, 0x1)) in test_check_prime_factor()
201 && TEST_false(ossl_rsa_check_prime_factor(bn_p1, e, 72, ctx)) in test_check_prime_factor()
203 && TEST_true(ossl_rsa_check_prime_factor(bn_p2, e, 72, ctx)) in test_check_prime_factor()
205 && TEST_true(BN_set_word(e, 0x2)) in test_check_prime_factor()
206 && TEST_false(ossl_rsa_check_prime_factor(p, e, 72, ctx)) in test_check_prime_factor()
208 && TEST_true(BN_set_word(e, 0x1)) in test_check_prime_factor()
209 && TEST_false(ossl_rsa_check_prime_factor(bn_p3, e, 72, ctx)); in test_check_prime_factor()
214 BN_free(e); in test_check_prime_factor()
226 BIGNUM *p = NULL, *q = NULL, *e = NULL, *d = NULL, *n = NULL; in test_check_private_exponent() local
242 ret = TEST_ptr(e = BN_new()) in test_check_private_exponent()
245 && TEST_true(BN_set_word(e, 5)) in test_check_private_exponent()
248 && TEST_true(RSA_set0_key(key, n, e, d)); in test_check_private_exponent()
250 BN_free(e); in test_check_private_exponent()
287 BIGNUM *p = NULL, *q = NULL, *e = NULL; in test_check_crt_components() local
293 && TEST_ptr(e = BN_new()) in test_check_crt_components()
296 && TEST_true(BN_set_word(e, E)) in test_check_crt_components()
304 ret = TEST_int_eq(ossl_rsa_sp800_56b_derive_params_from_pq(key, 8, e, ctx), 1) in test_check_crt_components()
343 BN_free(e); 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
367 && TEST_ptr(e = BN_new()) in test_derive_params_from_pq_fail()
370 && TEST_true(BN_set_word(e, derive_from_pq_tests[tst].e)) in test_derive_params_from_pq_fail()
378 ret = TEST_int_le(ossl_rsa_sp800_56b_derive_params_from_pq(key, 8, e, ctx), 0); in test_derive_params_from_pq_fail()
380 BN_free(e); in test_derive_params_from_pq_fail()
415 BIGNUM *p = NULL, *q = NULL, *n = NULL, *e = NULL, *d = NULL; in test_invalid_keypair() local
431 ret = TEST_ptr(e = bn_load_new(cav_e, sizeof(cav_e))) in test_invalid_keypair()
434 && TEST_true(RSA_set0_key(key, n, e, d)); in test_invalid_keypair()
436 BN_free(e); in test_invalid_keypair()
450 && TEST_true(BN_add_word(e, 1)) in test_invalid_keypair()
452 && TEST_true(BN_sub_word(e, 1)) in test_invalid_keypair()
456 && TEST_true(ossl_rsa_sp800_56b_check_keypair(key, e, 112, 2048)) in test_invalid_keypair()
506 BIGNUM *n = NULL, *d = NULL, *e = NULL; in test_check_private_key() local
515 && TEST_ptr(e = bn_load_new(cav_e, sizeof(cav_e))) in test_check_private_key()
516 && TEST_true(RSA_set0_key(key, n, e, d)); in test_check_private_key()
519 BN_free(e); in test_check_private_key()
539 BIGNUM *n = NULL, *e = NULL; in test_check_public_key() local
546 && TEST_ptr(e = bn_load_new(cav_e, sizeof(cav_e))) in test_check_public_key()
548 && TEST_true(RSA_set0_key(key, n, e, NULL)); in test_check_public_key()
550 BN_free(e); in test_check_public_key()
565 && TEST_true(BN_add_word(e, 1)) in test_check_public_key()
567 && TEST_true(BN_sub_word(e, 1)) in test_check_public_key()