/third_party/openssl/test/ |
D | tls13ccstest.c | 368 if (!TEST_false(badccs) || !TEST_false(badvers) || !TEST_false(badsessid)) in test_tls13ccs() 375 || !TEST_false(ccsbeforesh) in test_tls13ccs() 382 || !TEST_false(ccsaftersh) in test_tls13ccs() 383 || !TEST_false(ccsbeforesh) in test_tls13ccs() 389 if (!TEST_false(sccsseen) in test_tls13ccs() 391 || !TEST_false(ccsbeforesh) in test_tls13ccs() 399 || !TEST_false(ccsbeforesh) in test_tls13ccs() 406 || !TEST_false(ccsaftersh) in test_tls13ccs() 407 || !TEST_false(ccsbeforesh) in test_tls13ccs() 413 if (!TEST_false(sccsseen) in test_tls13ccs() [all …]
|
D | secmemtest.c | 26 || !TEST_false(CRYPTO_secure_allocated(s))) in test_sec_mem() 32 || !TEST_false(CRYPTO_secure_allocated(r))) in test_sec_mem() 45 if (!TEST_false(CRYPTO_secure_allocated(q))) in test_sec_mem() 63 if (!TEST_false(CRYPTO_secure_malloc_done()) in test_sec_mem() 71 || !TEST_false(CRYPTO_secure_malloc_initialized())) in test_sec_mem() 84 if (TEST_false(CRYPTO_secure_malloc_init(16, 16)) && in test_sec_mem() 85 !TEST_false(CRYPTO_secure_malloc_initialized())) { in test_sec_mem() 132 return TEST_false(CRYPTO_secure_malloc_init(4096, 32)); in test_sec_mem()
|
D | packettest.c | 59 || !TEST_false(PACKET_get_1(&pkt, &i))) in test_PACKET_get_1() 76 || !TEST_false(PACKET_get_4(&pkt, &i))) in test_PACKET_get_4() 93 || !TEST_false(PACKET_get_net_2(&pkt, &i))) in test_PACKET_get_net_2() 110 || !TEST_false(PACKET_get_net_3(&pkt, &i))) in test_PACKET_get_net_3() 127 || !TEST_false(PACKET_get_net_4(&pkt, &i))) in test_PACKET_get_net_4() 148 || !TEST_false(PACKET_get_sub_packet(&pkt, &subpkt, 4))) in test_PACKET_get_sub_packet() 172 || !TEST_false(PACKET_remaining(&pkt))) in test_PACKET_get_bytes() 196 || !TEST_false(PACKET_remaining(&pkt))) in test_PACKET_copy_bytes() 213 || !TEST_false(PACKET_copy_all(&pkt, tmp, BUF_LEN - 1, &len))) in test_PACKET_copy_all() 278 || !TEST_false(PACKET_contains_zero_byte(&pkt)) in test_PACKET_contains_zero_byte() [all …]
|
D | dhtest.c | 68 if (!TEST_false(i & DH_CHECK_P_NOT_PRIME) in dh_test() 69 || !TEST_false(i & DH_CHECK_P_NOT_SAFE_PRIME) in dh_test() 70 || !TEST_false(i & DH_CHECK_INVALID_Q_VALUE) in dh_test() 71 || !TEST_false(i & DH_CHECK_Q_NOT_PRIME) in dh_test() 72 || !TEST_false(i & DH_UNABLE_TO_CHECK_GENERATOR) in dh_test() 73 || !TEST_false(i & DH_NOT_SUITABLE_GENERATOR) in dh_test() 74 || !TEST_false(i)) in dh_test() 134 if (!TEST_false(DH_check(dh, &i))) in dh_test() 153 if (!TEST_false(i & DH_CHECK_P_NOT_PRIME) in dh_test() 154 || !TEST_false(i & DH_CHECK_P_NOT_SAFE_PRIME) in dh_test() [all …]
|
D | wpackettest.c | 54 || !TEST_false(WPACKET_close(&pkt)) in test_WPACKET_init() 61 || !TEST_false(WPACKET_close(&pkt)) in test_WPACKET_init() 62 || !TEST_false(WPACKET_finish(&pkt)) in test_WPACKET_init() 101 || !TEST_false(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init() 111 || !TEST_false(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init() 143 || !TEST_false(WPACKET_set_max_size(&pkt, 0)) in test_WPACKET_set_max_size() 148 || !TEST_false(WPACKET_set_max_size(&pkt, 0x0101)) in test_WPACKET_set_max_size() 154 || !TEST_false(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_set_max_size() 158 || !TEST_false(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_set_max_size() 177 || !TEST_false(WPACKET_finish(&pkt)) in test_WPACKET_start_sub_packet() [all …]
|
D | hmactest.c | 116 || !TEST_false(HMAC_Init_ex(ctx, NULL, 0, NULL, NULL)) in test_hmac_bad() 117 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_bad() 118 || !TEST_false(HMAC_Init_ex(ctx, NULL, 0, EVP_sha1(), NULL)) in test_hmac_bad() 119 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len))) in test_hmac_bad() 141 || !TEST_false(HMAC_Init_ex(ctx, NULL, 0, NULL, NULL)) in test_hmac_run() 142 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_run() 143 || !TEST_false(HMAC_Init_ex(ctx, test[4].key, -1, EVP_sha1(), NULL))) in test_hmac_run() 155 if (!TEST_false(HMAC_Init_ex(ctx, NULL, 0, EVP_sha256(), NULL))) in test_hmac_run()
|
D | cmactest.c | 78 || !TEST_false(CMAC_Init(ctx, NULL, 0, NULL, NULL)) in test_cmac_bad() 79 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad() 83 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad() 89 || !TEST_false(CMAC_Init(ctx, xtskey, sizeof(xtskey), EVP_aes_128_xts(), in test_cmac_bad() 91 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len))) in test_cmac_bad()
|
D | drbgtest.c | 304 || !TEST_false(RAND_DRBG_instantiate(drbg, td->pers, drbg->max_perslen + 1))) in error_check() 313 if (!TEST_false(RAND_DRBG_instantiate(drbg, td->pers, td->perslen))) in error_check() 317 if (!TEST_false(RAND_DRBG_generate(drbg, buff, td->exlen, 0, in error_check() 326 if (!TEST_false(RAND_DRBG_instantiate(drbg, td->pers, td->perslen)) in error_check() 334 if (!TEST_false(RAND_DRBG_instantiate(drbg, td->pers, td->perslen)) in error_check() 347 if (!TEST_false(RAND_DRBG_instantiate(drbg, td->pers, td->perslen)) in error_check() 357 if (!TEST_false(RAND_DRBG_instantiate(drbg, td->pers, td->perslen)) in error_check() 369 if (!TEST_false(RAND_DRBG_generate(drbg, buff, drbg->max_request + 1, 0, in error_check() 374 if (!TEST_false(RAND_DRBG_generate(drbg, buff, td->exlen, 0, in error_check() 383 if (!TEST_false(RAND_DRBG_generate(drbg, buff, td->exlen, 1, in error_check() [all …]
|
D | sslapitest.c | 220 if (!TEST_false(compare_hex_encoded_buffer(token, 64, in test_keylog_output() 232 if (!TEST_false(compare_hex_encoded_buffer(token, strlen(token), in test_keylog_output() 275 if (!TEST_false(compare_hex_encoded_buffer(token, 64, in test_keylog_output() 361 || !TEST_false(error_writing_log) in test_keylog() 439 || !TEST_false(error_writing_log)) in test_keylog_no_master_key() 572 || !TEST_false(create_ssl_connection(serverssl, clientssl, in test_client_hello_cb() 682 if (!TEST_false(SSL_renegotiate_pending(clientssl)) in test_ccs_change_cipher() 683 || !TEST_false(SSL_session_reused(clientssl)) in test_ccs_change_cipher() 684 || !TEST_false(SSL_session_reused(serverssl)) in test_ccs_change_cipher() 924 || !TEST_false(create_ssl_connection(serverssl, clientssl, in test_tlsext_status_type() [all …]
|
D | clienthellotest.c | 108 if (!TEST_false(SSL_CTX_set_cipher_list(ctx, ""))) in test_client_hello() 123 if (!TEST_false(SSL_CTX_set_alpn_protos(ctx, in test_client_hello() 230 if (!TEST_false(currtest == TEST_PADDING_NOT_NEEDED)) in test_client_hello()
|
D | rdrand_sanitytest.c | 60 if (!TEST_false(!memcmp(prior, buf, sizeof(buf)))) in sanity_check_bytes() 66 if (!TEST_false(!memcmp(check, tail, sizeof(check)))) in sanity_check_bytes()
|
D | enginetest.c | 103 if (!TEST_false(ENGINE_add(new_h3))) in test_engines() 108 if (!TEST_false(ENGINE_remove(new_h2))) in test_engines() 269 || !TEST_false(called_encrypt)) in test_redirect() 323 || !TEST_false(called_encrypt)) in test_redirect()
|
D | ectest.c | 101 || !TEST_false(EC_POINT_is_at_infinity(group, P))) in group_order_tests() 304 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests() 357 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests() 396 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests() 436 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests() 482 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests() 538 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests() 550 || !TEST_false(EC_POINT_is_at_infinity(group, Q)) in prime_field_tests() 557 || !TEST_false(EC_POINT_is_at_infinity(group, Q))) in prime_field_tests() 845 if (!TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, ctx)) in char2_curve_test() [all …]
|
D | conf_include_test.c | 148 || !TEST_false(NCONF_get_number(NULL, "missing", "FNORD", &val))) { in test_check_null_numbers() 175 if (!TEST_false(NCONF_get_number(NULL, "missing", "FNORD", &val))) in test_check_overflow()
|
D | dtls_mtu_test.c | 112 if (!TEST_false(s <= mtus[i] && reclen > (size_t)(500 + i))) { in mtu_test() 122 if (!TEST_false(s > mtus[i] && reclen <= (size_t)(500 + i))) { in mtu_test()
|
D | bntest.c | 196 || !TEST_false(BN_get_flags(a, BN_FLG_CONSTTIME))) in test_swap() 204 || !TEST_false(BN_get_flags(b, BN_FLG_CONSTTIME))) in test_swap() 212 || !TEST_false(BN_get_flags(b, BN_FLG_CONSTTIME))) in test_swap() 579 && TEST_false(BN_mod_mul_montgomery(d, a, a, mont, ctx)))) in test_modexp_mont5() 738 && TEST_false((BN_is_odd(a) && BN_is_odd(c)) in test_gf2m_add() 2085 if (!TEST_false(BN_rand(bn, 0, 0 /* top */ , 0 /* bottom */ )) in test_rand() 2086 || !TEST_false(BN_rand(bn, 0, 1 /* top */ , 1 /* bottom */ )) in test_rand() 2089 || !TEST_false(BN_rand(bn, 1, 1 /* top */ , 0 /* bottom */ )) in test_rand() 2184 if (!TEST_false(BN_div(a, b, BN_value_one(), zero, ctx))) in test_badmod() 2188 if (!TEST_false(BN_mod_mul(a, BN_value_one(), BN_value_one(), zero, ctx))) in test_badmod() [all …]
|
D | gosttest.c | 59 if (!TEST_false(create_ssl_connection(serverssl, clientssl, in test_tls13()
|
D | fatalerrtest.c | 57 if (!TEST_false(create_ssl_connection(sssl, cssl, SSL_ERROR_NONE))) in test_fatalerr()
|
D | asynciotest.c | 350 if (!TEST_false(ssl_error == SSL_ERROR_SYSCALL || in test_asyncio() 371 if (!TEST_false(ssl_error == SSL_ERROR_SYSCALL || in test_asyncio()
|
D | ec_internal_test.c | 51 if (!TEST_false(group->meth->field_inv(group, b, a, ctx)) in group_field_tests() 56 || !TEST_false(group->meth->field_inv(group, b, group->field, ctx)) in group_field_tests()
|
D | pemtest.c | 103 if (!TEST_false(PEM_read_bio_ex(b, &name, &header, &data, &len, 0))) in test_empty_payload()
|
D | d2i_test.c | 101 && !TEST_false(ERR_GET_REASON(ERR_peek_error()) == ERR_R_MALLOC_FAILURE)) in test_bad_asn1()
|
D | recordlentest.c | 167 if (!TEST_false(SSL_read_ex(serverssl, &buf, sizeof(buf), &written))) in test_record_overflow()
|
D | modes_internal_test.c | 867 if (!TEST_false(CRYPTO_gcm128_finish(&ctx, T.data, 16)) in test_gcm128() 878 if (!TEST_false(CRYPTO_gcm128_finish(&ctx, T.data, 16)) in test_gcm128()
|
D | servername_test.c | 73 || !TEST_false(PACKET_contains_zero_byte(&pkt5)) in get_sni_from_client_hello()
|