Home
last modified time | relevance | path

Searched refs:TEST_true (Results 1 – 25 of 77) sorted by relevance

1234

/third_party/openssl/test/
Dwpackettest.c51 if (!TEST_true(WPACKET_init(&pkt, buf)) in test_WPACKET_init()
52 || !TEST_true(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init()
56 || !TEST_true(WPACKET_finish(&pkt)) in test_WPACKET_init()
63 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_init()
68 if (!TEST_true(WPACKET_init_len(&pkt, buf, 1)) in test_WPACKET_init()
69 || !TEST_true(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init()
70 || !TEST_true(WPACKET_finish(&pkt)) in test_WPACKET_init()
71 || !TEST_true(WPACKET_get_total_written(&pkt, &written)) in test_WPACKET_init()
76 if (!TEST_true(WPACKET_init_len(&pkt, buf, 4)) in test_WPACKET_init()
77 || !TEST_true(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init()
[all …]
Dpackettest.c21 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 …]
Dectest.c49 if (!TEST_true(EC_GROUP_get_order(group, order, ctx)) in group_order_tests()
50 || !TEST_true(EC_POINT_mul(group, Q, order, NULL, NULL, ctx)) in group_order_tests()
51 || !TEST_true(EC_POINT_is_at_infinity(group, Q)) in group_order_tests()
52 || !TEST_true(EC_GROUP_precompute_mult(group, ctx)) in group_order_tests()
53 || !TEST_true(EC_POINT_mul(group, Q, order, NULL, NULL, ctx)) in group_order_tests()
54 || !TEST_true(EC_POINT_is_at_infinity(group, Q)) in group_order_tests()
55 || !TEST_true(EC_POINT_copy(P, G)) in group_order_tests()
56 || !TEST_true(BN_one(n1)) in group_order_tests()
57 || !TEST_true(EC_POINT_mul(group, Q, n1, NULL, NULL, ctx)) in group_order_tests()
59 || !TEST_true(BN_sub(n1, order, n1)) in group_order_tests()
[all …]
Dbntest.c162 if (!(TEST_true(BN_bntest_rand(a, 1024, 1, 0)) in test_swap()
163 && TEST_true(BN_bntest_rand(b, 1024, 1, 0)) in test_swap()
195 || !TEST_true(BN_get_flags(b, BN_FLG_CONSTTIME)) in test_swap()
203 || !TEST_true(BN_get_flags(a, BN_FLG_CONSTTIME)) in test_swap()
211 || !TEST_true(BN_get_flags(a, BN_FLG_CONSTTIME)) in test_swap()
236 if (!(TEST_true(BN_bntest_rand(a, 512, 0, 0))) in test_sub()
239 && TEST_true(BN_add_word(b, i))) in test_sub()
242 if (!TEST_true(BN_bntest_rand(b, 400 + i - NUM1, 0, 0))) in test_sub()
247 if (!(TEST_true(BN_sub(c, a, b)) in test_sub()
248 && TEST_true(BN_add(c, c, b)) in test_sub()
[all …]
Dsslapitest.c330 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), in test_keylog()
341 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "RSA"))) in test_keylog()
344 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) == NULL) in test_keylog()
345 || !TEST_true(SSL_CTX_get_keylog_callback(sctx) == NULL)) in test_keylog()
348 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) in test_keylog()
352 if (!TEST_true(SSL_CTX_get_keylog_callback(sctx) in test_keylog()
357 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog()
359 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog()
374 if (!TEST_true(test_keylog_output(client_log_buffer, clientssl, in test_keylog()
379 if (!TEST_true(test_keylog_output(server_log_buffer, serverssl, in test_keylog()
[all …]
Decdsatest.c43 if (!TEST_true(RAND_set_rand_method(&fake_rand))) in change_rand()
50 if (!TEST_true(RAND_set_rand_method(old_rand))) in restore_rand()
68 || !TEST_true(BN_hex2bn(&tmp, numbers[fbytes_counter])) in fbytes()
71 || !TEST_true(BN_bn2binpad(tmp, buf, num))) in fbytes()
124 || !TEST_true(EVP_DigestInit_ex(mctx, EVP_get_digestbynid(md_nid), NULL)) in x9_62_tests()
125 || !TEST_true(EVP_DigestUpdate(mctx, message, msg_len)) in x9_62_tests()
126 || !TEST_true(EVP_DigestFinal_ex(mctx, digest, &dgst_len)) in x9_62_tests()
132 || !TEST_true(BN_hex2bn(&r, r_in)) in x9_62_tests()
133 || !TEST_true(BN_hex2bn(&s, s_in)) in x9_62_tests()
135 || !TEST_true(change_rand())) in x9_62_tests()
[all …]
Devp_extra_test.c493 if (!TEST_true(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_IVLEN, t->ivlen, NULL))) in evp_init_seq_set_iv()
496 if (!TEST_true(EVP_CipherInit_ex(ctx, NULL, NULL, NULL, t->iv, -1))) in evp_init_seq_set_iv()
529 if (!TEST_true(EVP_CipherInit_ex(ctx, type, NULL, NULL, NULL, t->initenc))) { in test_evp_init_seq()
533 if (!TEST_true(EVP_CIPHER_CTX_set_padding(ctx, 0))) { in test_evp_init_seq()
537 if (t->keyfirst && !TEST_true(EVP_CipherInit_ex(ctx, NULL, NULL, t->key, NULL, -1))) { in test_evp_init_seq()
545 if (t->keyfirst == 0 && !TEST_true(EVP_CipherInit_ex(ctx, NULL, NULL, t->key, NULL, -1))) { in test_evp_init_seq()
549 if (!TEST_true(EVP_CipherInit_ex(ctx, NULL, NULL, NULL, NULL, t->finalenc))) { in test_evp_init_seq()
553 if (!TEST_true(EVP_CipherUpdate(ctx, outbuf, &outlen1, t->input, t->inlen))) { in test_evp_init_seq()
559 if (!TEST_true(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in test_evp_init_seq()
565 if (!TEST_true(EVP_CipherFinal_ex(ctx, outbuf + outlen1, &outlen2))) { in test_evp_init_seq()
[all …]
Dsiphash_internal_test.c199 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) in test_siphash()
200 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) in test_siphash()
203 if (!TEST_true(SipHash_Final(&siphash, out, expectedlen)) in test_siphash()
208 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) in test_siphash()
209 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) in test_siphash()
213 if (!TEST_true(SipHash_Final(&siphash, out, expectedlen))) in test_siphash()
225 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) in test_siphash()
226 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) in test_siphash()
230 if (!TEST_true(SipHash_Final(&siphash, out, expectedlen))) in test_siphash()
239 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) in test_siphash()
[all …]
Dcmactest.c81 || !TEST_true(CMAC_Init(ctx, NULL, 0, EVP_aes_128_cbc(), NULL)) in test_cmac_bad()
85 || !TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len, NULL, NULL)) in test_cmac_bad()
87 || !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
110 if (!TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len, in test_cmac_run()
112 || !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_run()
113 || !TEST_true(CMAC_Final(ctx, buf, &len))) in test_cmac_run()
120 if (!TEST_true(CMAC_Init(ctx, test[1].key, test[1].key_len, in test_cmac_run()
122 || !TEST_true(CMAC_Update(ctx, test[1].data, test[1].data_len)) in test_cmac_run()
123 || !TEST_true(CMAC_Final(ctx, buf, &len))) in test_cmac_run()
130 if (!TEST_true(CMAC_Init(ctx, test[2].key, test[2].key_len, NULL, NULL)) in test_cmac_run()
[all …]
Dsm2_internal_test.c65 if (!TEST_true(RAND_set_rand_method(&fake_rand))) in start_fake_rand()
75 if (!TEST_true(RAND_set_rand_method(saved_rand))) in restore_rand()
96 if (!TEST_true(BN_hex2bn(&p, p_hex)) in create_EC_group()
97 || !TEST_true(BN_hex2bn(&a, a_hex)) in create_EC_group()
98 || !TEST_true(BN_hex2bn(&b, b_hex))) in create_EC_group()
109 if (!TEST_true(BN_hex2bn(&g_x, x_hex)) in create_EC_group()
110 || !TEST_true(BN_hex2bn(&g_y, y_hex)) in create_EC_group()
111 || !TEST_true(EC_POINT_set_affine_coordinates(group, generator, g_x, in create_EC_group()
115 if (!TEST_true(BN_hex2bn(&order, order_hex)) in create_EC_group()
116 || !TEST_true(BN_hex2bn(&cof, cof_hex)) in create_EC_group()
[all …]
Dclienthellotest.c87 if (!TEST_true(SSL_CTX_set_max_proto_version(ctx, TLS_MAX_VERSION))) in test_client_hello()
97 if (!TEST_true(SSL_CTX_set_max_proto_version(ctx, TLS1_2_VERSION))) in test_client_hello()
131 } else if (!TEST_true(SSL_CTX_set_cipher_list(ctx, in test_client_hello()
133 || !TEST_true(SSL_CTX_set_ciphersuites(ctx, in test_client_hello()
162 if (!TEST_true(SSL_SESSION_set_time(sess, (long)time(NULL))) in test_client_hello()
163 || !TEST_true(SSL_set_session(con, sess))) in test_client_hello()
179 if (!TEST_true(SSL_set_session_ticket_ext(con, dummytick, in test_client_hello()
190 if (!TEST_true(PACKET_buf_init(&pkt, data, len)) in test_client_hello()
198 if (!TEST_true(PACKET_forward(&pkt, SSL3_HM_HEADER_LENGTH)) in test_client_hello()
200 || !TEST_true(PACKET_forward(&pkt, CLIENT_VERSION_LEN in test_client_hello()
[all …]
Denginetest.c59 || !TEST_true(ENGINE_set_id(new_h1, "test_id0")) in test_engines()
60 || !TEST_true(ENGINE_set_name(new_h1, "First test item")) in test_engines()
62 || !TEST_true(ENGINE_set_id(new_h2, "test_id1")) in test_engines()
63 || !TEST_true(ENGINE_set_name(new_h2, "Second test item")) in test_engines()
65 || !TEST_true(ENGINE_set_id(new_h3, "test_id2")) in test_engines()
66 || !TEST_true(ENGINE_set_name(new_h3, "Third test item")) in test_engines()
68 || !TEST_true(ENGINE_set_id(new_h4, "test_id3")) in test_engines()
69 || !TEST_true(ENGINE_set_name(new_h4, "Fourth test item"))) in test_engines()
74 if (!TEST_true(ENGINE_add(new_h1))) in test_engines()
80 if (!TEST_true(ENGINE_remove(ptr))) in test_engines()
[all …]
Dservername_test.c43 if (!TEST_true(PACKET_buf_init(&pkt, data, len)) in get_sni_from_client_hello()
47 || !TEST_true(PACKET_forward(&pkt, SSL3_HM_HEADER_LENGTH)) in get_sni_from_client_hello()
49 || !TEST_true(PACKET_forward(&pkt, CLIENT_VERSION_LEN in get_sni_from_client_hello()
52 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in get_sni_from_client_hello()
54 || !TEST_true(PACKET_get_length_prefixed_2(&pkt, &pkt2)) in get_sni_from_client_hello()
56 || !TEST_true(PACKET_get_length_prefixed_1(&pkt, &pkt2)) in get_sni_from_client_hello()
58 || !TEST_true(PACKET_as_length_prefixed_2(&pkt, &pkt2))) in get_sni_from_client_hello()
63 if (!TEST_true(PACKET_get_net_2(&pkt2, &type)) in get_sni_from_client_hello()
64 || !TEST_true(PACKET_get_length_prefixed_2(&pkt2, &pkt3))) in get_sni_from_client_hello()
67 if (!TEST_true(PACKET_get_length_prefixed_2(&pkt3, &pkt4)) in get_sni_from_client_hello()
[all …]
Dexptest.c64 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 …]
Dtls13ccstest.c257 if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), TLS_client_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()
318 if (!TEST_true(SSL_CTX_set1_groups_list(sctx, "P-256"))) in test_tls13ccs()
332 if (!TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, s_to_c_fbio, in test_tls13ccs()
338 if (!TEST_true(SSL_set_session(cssl, sess)) in test_tls13ccs()
339 || !TEST_true(SSL_write_early_data(cssl, msg, strlen(msg), in test_tls13ccs()
360 if (!TEST_true(create_ssl_connection(sssl, cssl, SSL_ERROR_NONE))) in test_tls13ccs()
373 if (!TEST_true(sccsseen) in test_tls13ccs()
[all …]
Dhmactest.c146 if (!TEST_true(HMAC_Init_ex(ctx, test[4].key, test[4].key_len, EVP_sha1(), NULL)) in test_hmac_run()
147 || !TEST_true(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_run()
148 || !TEST_true(HMAC_Final(ctx, buf, &len))) in test_hmac_run()
158 if (!TEST_true(HMAC_Init_ex(ctx, test[5].key, test[5].key_len, EVP_sha256(), NULL)) in test_hmac_run()
160 || !TEST_true(HMAC_Update(ctx, test[5].data, test[5].data_len)) in test_hmac_run()
161 || !TEST_true(HMAC_Final(ctx, buf, &len))) in test_hmac_run()
168 if (!TEST_true(HMAC_Init_ex(ctx, test[6].key, test[6].key_len, NULL, NULL)) in test_hmac_run()
169 || !TEST_true(HMAC_Update(ctx, test[6].data, test[6].data_len)) in test_hmac_run()
170 || !TEST_true(HMAC_Final(ctx, buf, &len))) in test_hmac_run()
177 if (!TEST_true(HMAC_Init_ex(ctx, NULL, 0, NULL, NULL)) in test_hmac_run()
[all …]
Dsecmemtest.c31 || !TEST_true(CRYPTO_secure_malloc_init(4096, 32)) in test_sec_mem()
37 || !TEST_true(CRYPTO_secure_allocated(p)) in test_sec_mem()
51 || !TEST_true(CRYPTO_secure_allocated(s)) in test_sec_mem()
64 || !TEST_true(CRYPTO_secure_malloc_initialized())) in test_sec_mem()
70 || !TEST_true(CRYPTO_secure_malloc_done()) in test_sec_mem()
75 if (!TEST_true(CRYPTO_secure_malloc_init(32768, 16))) in test_sec_mem()
78 TEST_true(CRYPTO_secure_malloc_done()); in test_sec_mem()
86 TEST_true(CRYPTO_secure_malloc_done()); in test_sec_mem()
116 if (TEST_true(CRYPTO_secure_malloc_init((size_t)1<<34, (size_t)1<<4) != 0)) in test_sec_mem()
117 TEST_true(CRYPTO_secure_malloc_done()); in test_sec_mem()
[all …]
Ddtlstest.c64 if (!TEST_true(create_ssl_ctx_pair(DTLS_server_method(), in test_dtls_unprocessed()
70 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "AES128-SHA"))) in test_dtls_unprocessed()
78 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in test_dtls_unprocessed()
103 if (!TEST_true(create_bare_ssl_connection(serverssl1, clientssl1, in test_dtls_unprocessed()
159 if (!TEST_true(create_ssl_ctx_pair(DTLS_server_method(), in test_dtls_drop_records()
167 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
169 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_dtls_drop_records()
195 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
200 if (!TEST_true(SSL_set_session(clientssl, sess))) in test_dtls_drop_records()
226 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in test_dtls_drop_records()
[all …]
Dec_internal_test.c33 || !TEST_true(group->meth->field_inv(group, b, BN_value_one(), ctx)) in group_field_tests()
34 || !TEST_true(BN_is_one(b)) in group_field_tests()
36 || !TEST_true(BN_pseudo_rand(a, BN_num_bits(group->field) - 1, in group_field_tests()
38 || !TEST_true(group->meth->field_inv(group, b, a, ctx)) in group_field_tests()
40 !TEST_true(group->meth->field_encode(group, a, a, ctx))) in group_field_tests()
42 !TEST_true(group->meth->field_encode(group, b, b, ctx))) in group_field_tests()
43 || !TEST_true(group->meth->field_mul(group, c, a, b, ctx)) in group_field_tests()
45 !TEST_true(group->meth->field_decode(group, c, c, ctx))) in group_field_tests()
46 || !TEST_true(BN_is_one(c))) in group_field_tests()
52 || !TEST_true(ERR_GET_LIB(ERR_peek_last_error()) == ERR_LIB_EC) in group_field_tests()
[all …]
Dsslbuffertest.c55 if (!TEST_true(create_ssl_objects(serverctx, clientctx, &serverssl, &clientssl, in test_func()
61 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) { in test_func()
81 if (test >= 1 && !TEST_true(SSL_free_buffers(clientssl))) in test_func()
83 if (test >= 2 && !TEST_true(SSL_alloc_buffers(clientssl))) in test_func()
86 if (test >= 3 && !TEST_true(SSL_alloc_buffers(clientssl))) in test_func()
88 if (test >= 4 && !TEST_true(SSL_free_buffers(clientssl))) in test_func()
115 if (test >= 5 && !TEST_true(SSL_free_buffers(serverssl))) in test_func()
118 if (test >= 6 && !TEST_true(SSL_free_buffers(serverssl))) in test_func()
120 if (test >= 7 && !TEST_true(SSL_alloc_buffers(serverssl))) in test_func()
122 if (test >= 8 && !TEST_true(SSL_free_buffers(serverssl))) in test_func()
Dsrptest.c45 if (!TEST_true(SRP_create_verifier_BN(username, server_pass, in run_srp()
65 if (!TEST_true(SRP_Verify_B_mod_N(Bpub, GN->N))) in run_srp()
79 if (!TEST_true(SRP_Verify_A_mod_N(Apub, GN->N))) in run_srp()
119 if (!TEST_true(BN_hex2bn(&tmp, hexbn))) in check_bn()
150 if (!TEST_true(SRP_create_verifier_BN("alice", "password123", &s, &v, GN->N, in run_srp_kat()
155 if (!TEST_true(check_bn("v", v, in run_srp_kat()
170 if (!TEST_true(SRP_Verify_B_mod_N(Bpub, GN->N))) in run_srp_kat()
174 if (!TEST_true(check_bn("B", Bpub, in run_srp_kat()
189 if (!TEST_true(SRP_Verify_A_mod_N(Apub, GN->N))) in run_srp_kat()
193 if (!TEST_true(check_bn("A", Apub, in run_srp_kat()
[all …]
Dcurve448_internal_test.c614 || !TEST_true(ED448_sign(outsig, NULL, 0, pubkey1, privkey1, NULL, in test_ed448()
617 || !TEST_true(ED448_sign(outsig, msg2, sizeof(msg2), pubkey2, in test_ed448()
620 || !TEST_true(ED448_sign(outsig, msg3, sizeof(msg3), pubkey3, in test_ed448()
623 || !TEST_true(ED448_sign(outsig, msg4, sizeof(msg4), pubkey4, in test_ed448()
626 || !TEST_true(ED448_sign(outsig, msg5, sizeof(msg5), pubkey5, in test_ed448()
629 || !TEST_true(ED448_sign(outsig, msg6, sizeof(msg6), pubkey6, in test_ed448()
632 || !TEST_true(ED448_sign(outsig, msg7, sizeof(msg7), pubkey7, in test_ed448()
635 || !TEST_true(ED448_sign(outsig, msg8, sizeof(msg8), pubkey8, in test_ed448()
638 || !TEST_true(ED448_sign(outsig, msg9, sizeof(msg9), pubkey9, in test_ed448()
641 || !TEST_true(ED448ph_sign(outsig, dohash(hashctx, phmsg1, in test_ed448()
[all …]
Ddrbg_cavs_test.c80 if (!TEST_true(RAND_DRBG_set_callbacks(drbg, kat_entropy, NULL, in single_kat_no_reseed()
96 if (!TEST_true(RAND_DRBG_instantiate(drbg, data->persstr, td->persstrlen)) in single_kat_no_reseed()
97 || !TEST_true(RAND_DRBG_generate(drbg, buff, td->retbyteslen, 0, in single_kat_no_reseed()
99 || !TEST_true(RAND_DRBG_generate(drbg, buff, td->retbyteslen, 0, in single_kat_no_reseed()
101 || !TEST_true(RAND_DRBG_uninstantiate(drbg)) in single_kat_no_reseed()
139 if (!TEST_true(RAND_DRBG_set_callbacks(drbg, kat_entropy, NULL, in single_kat_pr_false()
155 if (!TEST_true(RAND_DRBG_instantiate(drbg, data->persstr, td->persstrlen))) in single_kat_pr_false()
161 if (!TEST_true(RAND_DRBG_reseed(drbg, data->addinreseed, td->addinlen, 0)) in single_kat_pr_false()
162 || !TEST_true(RAND_DRBG_generate(drbg, buff, td->retbyteslen, 0, in single_kat_pr_false()
164 || !TEST_true(RAND_DRBG_generate(drbg, buff, td->retbyteslen, 0, in single_kat_pr_false()
[all …]
Dafalgtest.c70 if (!TEST_true(EVP_CipherInit_ex(ctx, cipher, e, key, iv, 1)) in test_afalg_aes_cbc()
71 || !TEST_true(EVP_CipherUpdate(ctx, ebuf, &encl, in, BUFFER_SIZE)) in test_afalg_aes_cbc()
72 || !TEST_true(EVP_CipherFinal_ex(ctx, ebuf+encl, &encf))) in test_afalg_aes_cbc()
79 if (!TEST_true(EVP_CIPHER_CTX_reset(ctx)) in test_afalg_aes_cbc()
80 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, e, key, iv, 0)) in test_afalg_aes_cbc()
81 || !TEST_true(EVP_CipherUpdate(ctx, dbuf, &decl, ebuf, encl)) in test_afalg_aes_cbc()
82 || !TEST_true(EVP_CipherFinal_ex(ctx, dbuf+decl, &decf))) in test_afalg_aes_cbc()
103 if (!TEST_true(ENGINE_init(e))) in test_pr16743()
109 TEST_true(ret); in test_pr16743()
Dthreadstest.c87 if (!TEST_true(CRYPTO_THREAD_read_lock(lock)) in test_lock()
88 || !TEST_true(CRYPTO_THREAD_unlock(lock))) in test_lock()
113 if (!TEST_true(run_thread(&thread, once_run_thread_cb)) in test_once()
114 || !TEST_true(wait_for_thread(thread)) in test_once()
143 || !TEST_true(CRYPTO_THREAD_set_local(&thread_local_key, in thread_local_thread_cb()
159 if (!TEST_true(CRYPTO_THREAD_init_local(&thread_local_key, in test_thread_local()
165 || !TEST_true(run_thread(&thread, thread_local_thread_cb)) in test_thread_local()
166 || !TEST_true(wait_for_thread(thread)) in test_thread_local()
182 if (!TEST_true(CRYPTO_THREAD_cleanup_local(&thread_local_key))) in test_thread_local()

1234