/third_party/openssl/test/ |
D | wpackettest.c | 44 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_init() 45 || !TEST_true(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init() 49 || !TEST_true(WPACKET_finish(&pkt)) in test_WPACKET_init() 56 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_init() 61 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1)) in test_WPACKET_init() 62 || !TEST_true(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init() 63 || !TEST_true(WPACKET_finish(&pkt)) in test_WPACKET_init() 64 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_init() 69 if (!TEST_true(WPACKET_init_len(&pkt, buf, 4)) in test_WPACKET_init() 70 || !TEST_true(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init() [all …]
|
D | rsa_sp800_56b_test.c | 115 && TEST_true(BN_set_word(e, 1)) in test_check_public_exponent() 118 && TEST_true(BN_set_word(e, 65536)) 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() [all …]
|
D | packettest.c | 21 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, sizeof(smbuf))) in test_PACKET_remaining() 23 || !TEST_true(PACKET_forward(&pkt, BUF_LEN - 1)) in test_PACKET_remaining() 25 || !TEST_true(PACKET_forward(&pkt, 1)) in test_PACKET_remaining() 36 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, sizeof(smbuf))) in test_PACKET_end() 39 || !TEST_true(PACKET_forward(&pkt, BUF_LEN - 1)) in test_PACKET_end() 41 || !TEST_true(PACKET_forward(&pkt, 1)) in test_PACKET_end() 53 if (!TEST_true(PACKET_buf_init(&pkt, smbuf, BUF_LEN)) in test_PACKET_get_1() 54 || !TEST_true(PACKET_get_1(&pkt, &i)) in test_PACKET_get_1() 56 || !TEST_true(PACKET_forward(&pkt, BUF_LEN - 2)) in test_PACKET_get_1() 57 || !TEST_true(PACKET_get_1(&pkt, &i)) in test_PACKET_get_1() [all …]
|
D | ectest.c | 58 if (!TEST_true(EC_GROUP_get_order(group, order, ctx)) in group_order_tests() 59 || !TEST_true(EC_POINT_mul(group, Q, order, NULL, NULL, ctx)) in group_order_tests() 60 || !TEST_true(EC_POINT_is_at_infinity(group, Q)) in group_order_tests() 62 || !TEST_true(EC_GROUP_precompute_mult(group, ctx)) in group_order_tests() 64 || !TEST_true(EC_POINT_mul(group, Q, order, NULL, NULL, ctx)) in group_order_tests() 65 || !TEST_true(EC_POINT_is_at_infinity(group, Q)) in group_order_tests() 66 || !TEST_true(EC_POINT_copy(P, G)) in group_order_tests() 67 || !TEST_true(BN_one(n1)) in group_order_tests() 68 || !TEST_true(EC_POINT_mul(group, Q, n1, NULL, NULL, ctx)) in group_order_tests() 70 || !TEST_true(BN_sub(n1, order, n1)) in group_order_tests() [all …]
|
D | bntest.c | 158 if (!(TEST_true(BN_bntest_rand(a, 1024, 1, 0)) in test_swap() 159 && TEST_true(BN_bntest_rand(b, 1024, 1, 0)) in test_swap() 191 || !TEST_true(BN_get_flags(b, BN_FLG_CONSTTIME)) in test_swap() 199 || !TEST_true(BN_get_flags(a, BN_FLG_CONSTTIME)) in test_swap() 207 || !TEST_true(BN_get_flags(a, BN_FLG_CONSTTIME)) in test_swap() 232 if (!(TEST_true(BN_bntest_rand(a, 512, 0, 0))) in test_sub() 235 && TEST_true(BN_add_word(b, i))) in test_sub() 238 if (!TEST_true(BN_bntest_rand(b, 400 + i - NUM1, 0, 0))) in test_sub() 243 if (!(TEST_true(BN_sub(c, a, b)) in test_sub() 244 && TEST_true(BN_add(c, c, b)) in test_sub() [all …]
|
D | sslapitest.c | 362 if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(), in test_keylog() 373 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "RSA"))) in test_keylog() 376 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) == NULL) in test_keylog() 377 || !TEST_true(SSL_CTX_get_keylog_callback(sctx) == NULL)) in test_keylog() 380 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) in test_keylog() 384 if (!TEST_true(SSL_CTX_get_keylog_callback(sctx) in test_keylog() 389 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog() 391 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog() 406 if (!TEST_true(test_keylog_output(client_log_buffer, clientssl, in test_keylog() 411 if (!TEST_true(test_keylog_output(server_log_buffer, serverssl, in test_keylog() [all …]
|
D | param_build_test.c | 35 || !TEST_true(OSSL_PARAM_BLD_push_long(bld, "l", 42)) in template_public_test() 36 || !TEST_true(OSSL_PARAM_BLD_push_int32(bld, "i32", 1532)) in template_public_test() 37 || !TEST_true(OSSL_PARAM_BLD_push_int64(bld, "i64", -9999999)) in template_public_test() 38 || !TEST_true(OSSL_PARAM_BLD_push_time_t(bld, "t", 11224)) in template_public_test() 39 || !TEST_true(OSSL_PARAM_BLD_push_double(bld, "d", 1.61803398875)) in template_public_test() 41 || !TEST_true(BN_set_word(bn, 1729)) in template_public_test() 42 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, "bignumber", bn)) in template_public_test() 43 || !TEST_true(OSSL_PARAM_BLD_push_utf8_string(bld, "utf8_s", "foo", in template_public_test() 45 || !TEST_true(OSSL_PARAM_BLD_push_utf8_ptr(bld, "utf8_p", "bar-boom", in template_public_test() 47 || !TEST_true(OSSL_PARAM_BLD_push_int(bld, "i", -6)) in template_public_test() [all …]
|
D | siphash_internal_test.c | 198 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) in test_siphash() 199 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) in test_siphash() 202 if (!TEST_true(SipHash_Final(&siphash, out, expectedlen)) in test_siphash() 207 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) in test_siphash() 208 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) in test_siphash() 212 if (!TEST_true(SipHash_Final(&siphash, out, expectedlen))) in test_siphash() 224 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) in test_siphash() 225 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) in test_siphash() 229 if (!TEST_true(SipHash_Final(&siphash, out, expectedlen))) in test_siphash() 238 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) in test_siphash() [all …]
|
D | cmactest.c | 87 || !TEST_true(CMAC_Init(ctx, NULL, 0, EVP_aes_128_cbc(), NULL)) in test_cmac_bad() 91 || !TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len, NULL, NULL)) in test_cmac_bad() 93 || !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad() 116 if (!TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len, in test_cmac_run() 118 || !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_run() 119 || !TEST_true(CMAC_Final(ctx, buf, &len))) in test_cmac_run() 126 if (!TEST_true(CMAC_Init(ctx, test[1].key, test[1].key_len, in test_cmac_run() 128 || !TEST_true(CMAC_Update(ctx, test[1].data, test[1].data_len)) in test_cmac_run() 129 || !TEST_true(CMAC_Final(ctx, buf, &len))) in test_cmac_run() 136 if (!TEST_true(CMAC_Init(ctx, test[2].key, test[2].key_len, NULL, NULL)) in test_cmac_run() [all …]
|
D | evp_extra_test.c | 675 if (!TEST_true(EVP_set_default_properties(ctx, "provider=fizzbang")) in test_EVP_set_default_properties() 682 if (!TEST_true(EVP_set_default_properties(ctx, NULL)) in test_EVP_set_default_properties() 724 if (!TEST_true(ret)) in test_selection() 733 if (!TEST_true(ret)) in test_selection() 777 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_P, p)) in test_EVP_PKEY_ffc_priv_pub() 778 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_Q, q)) in test_EVP_PKEY_ffc_priv_pub() 779 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_G, g))) in test_EVP_PKEY_ffc_priv_pub() 796 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_P, p)) in test_EVP_PKEY_ffc_priv_pub() 797 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_Q, q)) in test_EVP_PKEY_ffc_priv_pub() 798 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_G, g)) in test_EVP_PKEY_ffc_priv_pub() [all …]
|
D | threadstest.c | 42 res = TEST_true(CRYPTO_THREAD_read_lock(lock)) in test_lock() 43 && TEST_true(CRYPTO_THREAD_unlock(lock)) in test_lock() 44 && TEST_true(CRYPTO_THREAD_write_lock(lock)) in test_lock() 45 && TEST_true(CRYPTO_THREAD_unlock(lock)); in test_lock() 69 if (!TEST_true(run_thread(&thread, once_run_thread_cb)) in test_once() 70 || !TEST_true(wait_for_thread(thread)) in test_once() 99 || !TEST_true(CRYPTO_THREAD_set_local(&thread_local_key, in thread_local_thread_cb() 115 if (!TEST_true(CRYPTO_THREAD_init_local(&thread_local_key, in test_thread_local() 121 || !TEST_true(run_thread(&thread, thread_local_thread_cb)) in test_thread_local() 122 || !TEST_true(wait_for_thread(thread)) in test_thread_local() [all …]
|
D | params_api_test.c | 86 if ((bit32 && !TEST_true(OSSL_PARAM_get_int32(param, &i32))) in test_param_type_extra() 87 || !TEST_true(OSSL_PARAM_get_int64(param, &i64))) in test_param_type_extra() 91 && !TEST_true(OSSL_PARAM_get_uint32(param, (uint32_t *)&i32))) in test_param_type_extra() 92 || !TEST_true(OSSL_PARAM_get_uint64(param, (uint64_t *)&i64)) in test_param_type_extra() 93 || (sizet && !TEST_true(OSSL_PARAM_get_size_t(param, &s)))) in test_param_type_extra() 120 if (!TEST_true(OSSL_PARAM_set_int32(param, 12345)) in test_param_type_extra() 121 || !TEST_true(OSSL_PARAM_get_int64(param, &i64)) in test_param_type_extra() 125 if (!TEST_true(OSSL_PARAM_set_uint32(param, 12345)) in test_param_type_extra() 126 || !TEST_true(OSSL_PARAM_get_uint64(param, (uint64_t *)&i64)) in test_param_type_extra() 130 if (!TEST_true(OSSL_PARAM_modified(param))) in test_param_type_extra() [all …]
|
D | exptest.c | 64 if (!TEST_true(BN_rand(a, 1024, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY))) in test_mod_exp_zero() 67 if (!TEST_true(BN_mod_exp(r, a, p, m, ctx))) in test_mod_exp_zero() 70 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp", r, a))) in test_mod_exp_zero() 73 if (!TEST_true(BN_mod_exp_recp(r, a, p, m, ctx))) in test_mod_exp_zero() 76 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_recp", r, a))) in test_mod_exp_zero() 79 if (!TEST_true(BN_mod_exp_simple(r, a, p, m, ctx))) in test_mod_exp_zero() 82 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_simple", r, a))) in test_mod_exp_zero() 85 if (!TEST_true(BN_mod_exp_mont(r, a, p, m, ctx, NULL))) in test_mod_exp_zero() 88 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_mont", r, a))) in test_mod_exp_zero() 91 if (!TEST_true(BN_mod_exp_mont_consttime(r, a, p, m, ctx, NULL))) in test_mod_exp_zero() [all …]
|
D | dtlstest.c | 80 if (!TEST_true(create_ssl_ctx_pair(NULL, DTLS_server_method(), in test_dtls_unprocessed() 87 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "AES128-SHA"))) in test_dtls_unprocessed() 91 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "AES128-SHA:@SECLEVEL=0")) in test_dtls_unprocessed() 92 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_dtls_unprocessed() 102 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in test_dtls_unprocessed() 127 if (!TEST_true(create_bare_ssl_connection(serverssl1, clientssl1, in test_dtls_unprocessed() 202 if (!TEST_true(create_ssl_ctx_pair(NULL, DTLS_server_method(), in test_dtls_drop_records() 210 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")) in test_dtls_drop_records() 211 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_dtls_drop_records() 216 if (!TEST_true(SSL_CTX_set_dh_auto(sctx, 1))) in test_dtls_drop_records() [all …]
|
D | clienthellotest.c | 91 if (!TEST_true(SSL_CTX_set_max_proto_version(ctx, 0))) in test_client_hello() 102 if (!TEST_true(SSL_CTX_set_max_proto_version(ctx, TLS1_2_VERSION))) in test_client_hello() 136 } else if (!TEST_true(SSL_CTX_set_cipher_list(ctx, in test_client_hello() 138 || !TEST_true(SSL_CTX_set_ciphersuites(ctx, in test_client_hello() 167 if (!TEST_true(SSL_SESSION_set_time(sess, (long)time(NULL))) in test_client_hello() 168 || !TEST_true(SSL_set_session(con, sess))) in test_client_hello() 184 if (!TEST_true(SSL_set_session_ticket_ext(con, dummytick, in test_client_hello() 195 || !TEST_true(PACKET_buf_init(&pkt, data, len)) in test_client_hello() 203 if (!TEST_true(PACKET_forward(&pkt, SSL3_HM_HEADER_LENGTH)) in test_client_hello() 205 || !TEST_true(PACKET_forward(&pkt, CLIENT_VERSION_LEN in test_client_hello() [all …]
|
D | errtest.c | 102 if (!TEST_true(IS_HEX(*p))) in test_print_error_format() 105 if (!TEST_true(*p != 0) in test_print_error_format() 183 if (!TEST_true(ERR_set_mark()) in test_marks() 184 || !TEST_true(ERR_pop_to_mark()) in test_marks() 186 || !TEST_true(ERR_set_mark()) in test_marks() 187 || !TEST_true(ERR_clear_last_mark()) in test_marks() 192 if (!TEST_true(ERR_set_mark())) in test_marks() 196 || !TEST_true(ERR_pop_to_mark()) in test_marks() 201 if (!TEST_true(ERR_set_mark()) in test_marks() 202 || !TEST_true(ERR_set_mark())) in test_marks() [all …]
|
D | sm2_internal_test.c | 92 if (!TEST_true(BN_hex2bn(&p, p_hex)) in create_EC_group() 93 || !TEST_true(BN_hex2bn(&a, a_hex)) in create_EC_group() 94 || !TEST_true(BN_hex2bn(&b, b_hex))) in create_EC_group() 105 if (!TEST_true(BN_hex2bn(&g_x, x_hex)) in create_EC_group() 106 || !TEST_true(BN_hex2bn(&g_y, y_hex)) in create_EC_group() 107 || !TEST_true(EC_POINT_set_affine_coordinates(group, generator, g_x, in create_EC_group() 111 if (!TEST_true(BN_hex2bn(&order, order_hex)) in create_EC_group() 112 || !TEST_true(BN_hex2bn(&cof, cof_hex)) in create_EC_group() 113 || !TEST_true(EC_GROUP_set_generator(group, generator, order, cof))) in create_EC_group() 153 || !TEST_true(BN_hex2bn(&priv, privkey_hex))) in test_sm2_crypt() [all …]
|
D | keymgmt_internal_test.c | 94 if (!TEST_true(OSSL_PARAM_get_BN(p, &n)) in get_ulong_via_BN() 110 || !TEST_true(get_ulong_via_BN(p, &keydata[N])) in export_cb() 112 || !TEST_true(get_ulong_via_BN(p, &keydata[E])) in export_cb() 114 || !TEST_true(get_ulong_via_BN(p, &keydata[D]))) in export_cb() 118 || !TEST_true(get_ulong_via_BN(p, &keydata[P])) in export_cb() 120 || !TEST_true(get_ulong_via_BN(p, &keydata[Q])) in export_cb() 122 || !TEST_true(get_ulong_via_BN(p, &keydata[F3]))) in export_cb() 126 || !TEST_true(get_ulong_via_BN(p, &keydata[DP])) in export_cb() 128 || !TEST_true(get_ulong_via_BN(p, &keydata[DQ])) in export_cb() 130 || !TEST_true(get_ulong_via_BN(p, &keydata[E3]))) in export_cb() [all …]
|
D | ecdsatest.c | 46 || !TEST_true(BN_hex2bn(&tmp, numbers[fbytes_counter])) in fbytes() 107 || !TEST_true(EVP_DigestInit_ex(mctx, EVP_get_digestbynid(md_nid), NULL)) in x9_62_tests() 108 || !TEST_true(EVP_DigestUpdate(mctx, message, msg_len)) in x9_62_tests() 109 || !TEST_true(EVP_DigestFinal_ex(mctx, digest, &dgst_len)) in x9_62_tests() 115 || !TEST_true(BN_hex2bn(&r, r_in)) in x9_62_tests() 116 || !TEST_true(BN_hex2bn(&s, s_in))) in x9_62_tests() 121 if (!TEST_true(EC_KEY_generate_key(key)) in x9_62_tests() 122 || !TEST_true(p_len = EC_KEY_key2buf(key, POINT_CONVERSION_UNCOMPRESSED, in x9_62_tests() 131 if (!TEST_true(ECDSA_sign_setup(key, NULL, &kinv, &rp)) in x9_62_tests() 229 || !TEST_true(EC_KEY_generate_key(eckey)) in test_builtin() [all …]
|
D | enginetest.c | 65 || !TEST_true(ENGINE_set_id(new_h1, "test_id0")) in test_engines() 66 || !TEST_true(ENGINE_set_name(new_h1, "First test item")) in test_engines() 68 || !TEST_true(ENGINE_set_id(new_h2, "test_id1")) in test_engines() 69 || !TEST_true(ENGINE_set_name(new_h2, "Second test item")) in test_engines() 71 || !TEST_true(ENGINE_set_id(new_h3, "test_id2")) in test_engines() 72 || !TEST_true(ENGINE_set_name(new_h3, "Third test item")) in test_engines() 74 || !TEST_true(ENGINE_set_id(new_h4, "test_id3")) in test_engines() 75 || !TEST_true(ENGINE_set_name(new_h4, "Fourth test item"))) in test_engines() 80 if (!TEST_true(ENGINE_add(new_h1))) in test_engines() 86 if (!TEST_true(ENGINE_remove(ptr))) in test_engines() [all …]
|
D | servername_test.c | 56 || !TEST_true(PACKET_buf_init(&pkt, data, len)) in get_sni_from_client_hello() 60 || !TEST_true(PACKET_forward(&pkt, SSL3_HM_HEADER_LENGTH)) in get_sni_from_client_hello() 62 || !TEST_true(PACKET_forward(&pkt, CLIENT_VERSION_LEN in get_sni_from_client_hello() 65 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in get_sni_from_client_hello() 67 || !TEST_true(PACKET_get_length_prefixed_2(&pkt, &pkt2)) in get_sni_from_client_hello() 69 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in get_sni_from_client_hello() 71 || !TEST_true(PACKET_as_length_prefixed_2(&pkt, &pkt2))) in get_sni_from_client_hello() 76 if (!TEST_true(PACKET_get_net_2(&pkt2, &type)) in get_sni_from_client_hello() 77 || !TEST_true(PACKET_get_length_prefixed_2(&pkt2, &pkt3))) in get_sni_from_client_hello() 80 if (!TEST_true(PACKET_get_length_prefixed_2(&pkt3, &pkt4)) in get_sni_from_client_hello() [all …]
|
D | cmp_protect_test.c | 89 && TEST_true(ASN1_STRING_cmp(protection, in execute_calc_protection_pbmac_test() 116 && TEST_true(EVP_DigestVerifyInit(ctx, NULL, digest, NULL, pkey)) in verify_signature() 133 && TEST_true(ASN1_STRING_cmp(protection, in execute_calc_protection_signature_test() 135 && TEST_true(verify_signature(fixture->msg, protection, in execute_calc_protection_signature_test() 161 if (!TEST_true(OSSL_CMP_CTX_set1_pkey(fixture->cmp_ctx, loadedprivkey)) in test_cmp_calc_protection_pkey() 175 if (!TEST_true(OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, in test_cmp_calc_protection_pbmac() 198 || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 1))) { in test_MSG_protect_unprotected_request() 214 || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0)) in test_MSG_protect_with_msg_sig_alg_protection_plus_rsa_key() 219 || !TEST_true(OSSL_CMP_CTX_set1_referenceValue(fixture->cmp_ctx, in test_MSG_protect_with_msg_sig_alg_protection_plus_rsa_key() 221 || !TEST_true(OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, in test_MSG_protect_with_msg_sig_alg_protection_plus_rsa_key() [all …]
|
D | evp_pkey_provided_test.c | 105 if (!TEST_true(BIO_read_ex(file, buf, sizeof(buf), &readbytes)) in compare_with_file() 106 || !TEST_true(BIO_eof(file)) in compare_with_file() 150 !TEST_true(PEM_write_bio_PrivateKey(bio_out, pk, EVP_aes_256_cbc(), in test_print_key_using_pem() 154 || !TEST_true(PEM_write_bio_PKCS8PrivateKey(bio_out, pk, in test_print_key_using_pem() 158 || !TEST_true(PEM_write_bio_PKCS8PrivateKey(bio_out, pk, in test_print_key_using_pem() 161 || !TEST_true(PEM_write_bio_PKCS8PrivateKey(bio_out, pk, in test_print_key_using_pem() 169 || !TEST_true(PEM_write_bio_PKCS8PrivateKey_nid( in test_print_key_using_pem() 172 || !TEST_true(PEM_write_bio_PKCS8PrivateKey_nid( in test_print_key_using_pem() 175 || !TEST_true(PEM_write_bio_PKCS8PrivateKey_nid( in test_print_key_using_pem() 184 || !TEST_true(compare_with_file(alg, PRIV_TEXT, membio)) in test_print_key_using_pem() [all …]
|
D | v3ext.c | 56 || !TEST_true(ASN1_INTEGER_set_int64(val1, 64496))) in test_asid() 59 if (!TEST_true(X509v3_asid_add_id_or_range(asid1, V3_ASID_ASNUM, val1, NULL))) in test_asid() 64 || !TEST_true(ASN1_INTEGER_set_int64(val2, 64497))) in test_asid() 67 if (!TEST_true(X509v3_asid_add_id_or_range(asid2, V3_ASID_ASNUM, val2, NULL))) in test_asid() 72 || !TEST_true(ASN1_INTEGER_set_int64(val1, 64496)) in test_asid() 74 || !TEST_true(ASN1_INTEGER_set_int64(val2, 64497))) in test_asid() 81 if (!TEST_true(X509v3_asid_add_id_or_range(asid3, V3_ASID_ASNUM, val1, val2))) in test_asid() 86 if (!TEST_true(X509v3_asid_subset(NULL, NULL)) in test_asid() 87 || !TEST_true(X509v3_asid_subset(NULL, asid1)) in test_asid() 88 || !TEST_true(X509v3_asid_subset(asid1, asid1)) in test_asid() [all …]
|
D | tls13ccstest.c | 257 if (!TEST_true(create_ssl_ctx_pair(NULL, TLS_server_method(), in test_tls13ccs() 260 || !TEST_true(SSL_CTX_set_max_early_data(sctx, in test_tls13ccs() 303 if (!TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, NULL, NULL)) in test_tls13ccs() 304 || !TEST_true(create_ssl_connection(sssl, cssl, SSL_ERROR_NONE))) in test_tls13ccs() 320 if (!TEST_true(SSL_CTX_set1_groups_list(sctx, "ffdhe3072"))) in test_tls13ccs() 324 if (!TEST_true(SSL_CTX_set1_groups_list(sctx, "P-256"))) in test_tls13ccs() 339 if (!TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, s_to_c_fbio, in test_tls13ccs() 345 if (!TEST_true(SSL_set_session(cssl, sess)) in test_tls13ccs() 346 || !TEST_true(SSL_write_early_data(cssl, msg, strlen(msg), in test_tls13ccs() 367 if (!TEST_true(create_ssl_connection(sssl, cssl, SSL_ERROR_NONE))) in test_tls13ccs() [all …]
|