Home
last modified time | relevance | path

Searched refs:TEST_false (Results 1 – 25 of 57) sorted by relevance

123

/third_party/openssl/test/
Drsa_sp800_56b_test.c116 && TEST_false(ossl_rsa_check_public_exponent(e)) in test_check_public_exponent()
119 && TEST_false(ossl_rsa_check_public_exponent(e)) in test_check_public_exponent()
158 && TEST_false(ossl_rsa_check_prime_factor_range(p, 8, ctx)) in test_check_prime_factor_range()
160 && TEST_false(ossl_rsa_check_prime_factor_range(p, 8, ctx)) in test_check_prime_factor_range()
162 && TEST_false(ossl_rsa_check_prime_factor_range(p, 8, ctx)) in test_check_prime_factor_range()
167 && TEST_false(ossl_rsa_check_prime_factor_range(bn_p1, 72, ctx)) in test_check_prime_factor_range()
168 && TEST_false(ossl_rsa_check_prime_factor_range(bn_p2, 72, ctx)) in test_check_prime_factor_range()
201 && TEST_false(ossl_rsa_check_prime_factor(bn_p1, e, 72, ctx)) in test_check_prime_factor()
206 && TEST_false(ossl_rsa_check_prime_factor(p, e, 72, ctx)) in test_check_prime_factor()
209 && TEST_false(ossl_rsa_check_prime_factor(bn_p3, e, 72, ctx)); in test_check_prime_factor()
[all …]
Dtls13ccstest.c375 if (!TEST_false(badccs) || !TEST_false(badvers) || !TEST_false(badsessid)) in test_tls13ccs()
382 || !TEST_false(ccsbeforesh) in test_tls13ccs()
389 || !TEST_false(ccsaftersh) in test_tls13ccs()
390 || !TEST_false(ccsbeforesh) in test_tls13ccs()
396 if (!TEST_false(sccsseen) in test_tls13ccs()
398 || !TEST_false(ccsbeforesh) in test_tls13ccs()
406 || !TEST_false(ccsbeforesh) in test_tls13ccs()
413 || !TEST_false(ccsaftersh) in test_tls13ccs()
414 || !TEST_false(ccsbeforesh) in test_tls13ccs()
420 if (!TEST_false(sccsseen) in test_tls13ccs()
[all …]
Dffc_internal_test.c202 if (!TEST_false(ossl_ffc_params_FIPS186_4_validate(NULL, &params, in ffc_params_validate_g_unverified_test()
216 if (!TEST_false(ossl_ffc_params_FIPS186_4_validate(NULL, &params, in ffc_params_validate_g_unverified_test()
223 if (!TEST_false(ossl_ffc_params_FIPS186_4_validate(NULL, &params, in ffc_params_validate_g_unverified_test()
230 if (!TEST_false(ossl_ffc_params_FIPS186_4_validate(NULL, &params, in ffc_params_validate_g_unverified_test()
266 if (!TEST_false(ossl_ffc_params_FIPS186_4_validate(NULL, &params, in ffc_params_validate_pq_test()
286 if (!TEST_false(ossl_ffc_params_FIPS186_4_validate(NULL, &params, in ffc_params_validate_pq_test()
295 if (!TEST_false(ossl_ffc_params_FIPS186_4_validate(NULL, &params, in ffc_params_validate_pq_test()
304 if (!TEST_false(ossl_ffc_params_FIPS186_4_validate(NULL, &params, in ffc_params_validate_pq_test()
325 if (!TEST_false(ossl_ffc_params_FIPS186_4_validate(NULL, &params, in ffc_params_validate_pq_test()
331 if (!TEST_false(ossl_ffc_params_FIPS186_4_validate(NULL, &params, in ffc_params_validate_pq_test()
[all …]
Dpackettest.c59 || !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 …]
Ddhtest.c79 if (!TEST_false(i & DH_CHECK_P_NOT_PRIME) in dh_test()
80 || !TEST_false(i & DH_CHECK_P_NOT_SAFE_PRIME) in dh_test()
81 || !TEST_false(i & DH_UNABLE_TO_CHECK_GENERATOR) in dh_test()
82 || !TEST_false(i & DH_NOT_SUITABLE_GENERATOR) in dh_test()
83 || !TEST_false(i & DH_CHECK_Q_NOT_PRIME) in dh_test()
84 || !TEST_false(i & DH_CHECK_INVALID_Q_VALUE) in dh_test()
85 || !TEST_false(i & DH_CHECK_INVALID_J_VALUE) in dh_test()
86 || !TEST_false(i & DH_MODULUS_TOO_SMALL) in dh_test()
87 || !TEST_false(i & DH_MODULUS_TOO_LARGE) in dh_test()
88 || !TEST_false(i)) in dh_test()
[all …]
Dsecmemtest.c26 || !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()
Dwpackettest.c47 || !TEST_false(WPACKET_close(&pkt)) in test_WPACKET_init()
54 || !TEST_false(WPACKET_close(&pkt)) in test_WPACKET_init()
55 || !TEST_false(WPACKET_finish(&pkt)) in test_WPACKET_init()
94 || !TEST_false(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init()
104 || !TEST_false(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_init()
136 || !TEST_false(WPACKET_set_max_size(&pkt, 0)) in test_WPACKET_set_max_size()
141 || !TEST_false(WPACKET_set_max_size(&pkt, 0x0101)) in test_WPACKET_set_max_size()
147 || !TEST_false(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_set_max_size()
151 || !TEST_false(WPACKET_put_bytes_u8(&pkt, 0xff)) in test_WPACKET_set_max_size()
170 || !TEST_false(WPACKET_finish(&pkt)) in test_WPACKET_start_sub_packet()
[all …]
Dv3ext.c99 if (!TEST_false(X509v3_asid_subset(asid1, NULL)) in test_asid()
100 || !TEST_false(X509v3_asid_subset(asid1, asid2)) in test_asid()
101 || !TEST_false(X509v3_asid_subset(asid2, asid1)) in test_asid()
102 || !TEST_false(X509v3_asid_subset(asid3, asid1)) in test_asid()
103 || !TEST_false(X509v3_asid_subset(asid3, asid2)) in test_asid()
104 || !TEST_false(X509v3_asid_subset(asid1, asid4)) in test_asid()
105 || !TEST_false(X509v3_asid_subset(asid2, asid4)) in test_asid()
106 || !TEST_false(X509v3_asid_subset(asid3, asid4))) in test_asid()
310 if (!TEST_false(X509V3_EXT_add_nconf(conf, &ctx, "default", in test_ext_syntax()
Dhmactest.c115 || !TEST_false(HMAC_Init_ex(ctx, NULL, 0, NULL, NULL)) in test_hmac_bad()
116 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_bad()
117 || !TEST_false(HMAC_Init_ex(ctx, NULL, 0, EVP_sha1(), NULL)) in test_hmac_bad()
118 || !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()
Dcmactest.c84 || !TEST_false(CMAC_Init(ctx, NULL, 0, NULL, NULL)) in test_cmac_bad()
85 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
89 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
95 || !TEST_false(CMAC_Init(ctx, xtskey, sizeof(xtskey), EVP_aes_128_xts(), in test_cmac_bad()
97 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len))) in test_cmac_bad()
Dnamemap_internal_test.c141 || !TEST_false(EVP_CIPHER_is_a(fetched, "AES-128-GCM"))) in test_cipher_is_a()
144 || !TEST_false(EVP_CIPHER_is_a(EVP_aes_256_gcm(), "AES-128-CCM"))) in test_cipher_is_a()
163 || !TEST_false(EVP_MD_is_a(fetched, "SHA1"))) in test_digest_is_a()
166 || !TEST_false(EVP_MD_is_a(EVP_sha256(), "SHA3-256"))) in test_digest_is_a()
Devp_pkey_provided_test.c164 || !TEST_false(PEM_write_bio_PKCS8PrivateKey(bio_out, pk, in test_print_key_using_pem()
178 || !TEST_false(PEM_write_bio_PKCS8PrivateKey_nid( in test_print_key_using_pem()
291 if (!TEST_false(OSSL_ENCODER_CTX_set_cipher(ctx, "FOO", NULL)) in test_print_key_type_using_encoder()
292 || !TEST_false(OSSL_ENCODER_to_bio(ctx, bio_out))) in test_print_key_type_using_encoder()
392 || !TEST_false(EVP_PKEY_missing_parameters(pk))) in test_fromdata_rsa()
407 || !TEST_false(EVP_PKEY_copy_parameters(copy_pk, pk))) in test_fromdata_rsa()
587 || !TEST_false(EVP_PKEY_get_utf8_string_param(pk, in test_fromdata_dh_named_group()
593 || !TEST_false(EVP_PKEY_get_utf8_string_param(pk, in test_fromdata_dh_named_group()
605 || !TEST_false(EVP_PKEY_missing_parameters(pk))) in test_fromdata_dh_named_group()
627 || !TEST_false(EVP_PKEY_get_bn_param(pk, in test_fromdata_dh_named_group()
[all …]
Dparams_conversion_test.c193 if (!TEST_false(OSSL_PARAM_get_int32(pc->param, &i32))) { in param_conversion_test()
213 if (!TEST_false(OSSL_PARAM_get_int64(pc->param, &i64))) { in param_conversion_test()
233 if (!TEST_false(OSSL_PARAM_get_uint32(pc->param, &u32))) { in param_conversion_test()
253 if (!TEST_false(OSSL_PARAM_get_uint64(pc->param, &u64))) { in param_conversion_test()
273 if (!TEST_false(OSSL_PARAM_get_double(pc->param, &d))) { in param_conversion_test()
295 if (!TEST_false(pc->d == pc->d)) { in param_conversion_test()
Dproperty_test.c347 || !TEST_false(ossl_method_store_remove(store, nid, impl))) { in test_register_deregister()
353 if (TEST_false(ossl_method_store_remove(store, impls[0].nid, impls[0].impl))) in test_register_deregister()
451 if (!TEST_false(ossl_method_store_fetch(store, in test_property()
483 if (!TEST_false(ossl_method_store_fetch(store, in test_property()
557 && TEST_false(EVP_default_properties_is_fips_enabled(ctx)) in test_fips_mode()
559 && TEST_false(EVP_default_properties_is_fips_enabled(ctx)) in test_fips_mode()
563 && TEST_false(EVP_default_properties_is_fips_enabled(ctx)) in test_fips_mode()
568 && TEST_false(EVP_default_properties_is_fips_enabled(ctx)); in test_fips_mode()
Dectest.c112 || !TEST_false(EC_POINT_is_at_infinity(group, P))) in group_order_tests()
297 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests()
348 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests()
385 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests()
423 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests()
467 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests()
521 || !TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, in prime_field_tests()
531 || !TEST_false(EC_POINT_is_at_infinity(group, Q)) in prime_field_tests()
538 || !TEST_false(EC_POINT_is_at_infinity(group, Q))) in prime_field_tests()
819 if (!TEST_false(EC_POINT_set_affine_coordinates(group, P, x, yplusone, ctx)) in char2_curve_test()
[all …]
Dsslapitest.c255 if (!TEST_false(compare_hex_encoded_buffer(token, 64, in test_keylog_output()
267 if (!TEST_false(compare_hex_encoded_buffer(token, strlen(token), in test_keylog_output()
310 if (!TEST_false(compare_hex_encoded_buffer(token, 64, in test_keylog_output()
393 || !TEST_false(error_writing_log) in test_keylog()
472 || !TEST_false(error_writing_log)) in test_keylog_no_master_key()
595 if (!TEST_false(create_ssl_connection(serverssl, clientssl, in test_client_cert_verify_cb()
770 || !TEST_false(create_ssl_connection(serverssl, clientssl, in test_client_hello_cb()
925 if (!TEST_false(SSL_renegotiate_pending(clientssl)) in test_ccs_change_cipher()
926 || !TEST_false(SSL_session_reused(clientssl)) in test_ccs_change_cipher()
927 || !TEST_false(SSL_session_reused(serverssl)) in test_ccs_change_cipher()
[all …]
Dclienthellotest.c113 if (!TEST_false(SSL_CTX_set_cipher_list(ctx, ""))) in test_client_hello()
128 if (!TEST_false(SSL_CTX_set_alpn_protos(ctx, in test_client_hello()
235 if (!TEST_false(currtest == TEST_PADDING_NOT_NEEDED)) in test_client_hello()
Dparam_build_test.c203 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
211 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
219 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
227 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
235 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
249 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
Drdrand_sanitytest.c56 if (!TEST_false(!memcmp(prior, buf, sizeof(buf)))) in sanity_check_bytes()
62 if (!TEST_false(!memcmp(check, tail, sizeof(check)))) in sanity_check_bytes()
Derrtest.c238 if (!TEST_false(ERR_pop_to_mark()) in test_marks()
244 if (!TEST_false(ERR_clear_last_mark()) in test_marks()
260 if (!TEST_false(ERR_set_mark())) in test_marks()
Denginetest.c109 if (!TEST_false(ENGINE_add(new_h3))) in test_engines()
114 if (!TEST_false(ENGINE_remove(new_h2))) in test_engines()
275 || !TEST_false(called_encrypt)) in test_redirect()
329 || !TEST_false(called_encrypt)) in test_redirect()
Dbntest.c192 || !TEST_false(BN_get_flags(a, BN_FLG_CONSTTIME))) in test_swap()
200 || !TEST_false(BN_get_flags(b, BN_FLG_CONSTTIME))) in test_swap()
208 || !TEST_false(BN_get_flags(b, BN_FLG_CONSTTIME))) in test_swap()
575 && TEST_false(BN_mod_mul_montgomery(d, a, a, mont, ctx)))) in test_modexp_mont5()
734 && TEST_false((BN_is_odd(a) && BN_is_odd(c)) in test_gf2m_add()
2081 if (!TEST_false(BN_rand(bn, 0, 0 /* top */ , 0 /* bottom */ )) in test_rand()
2082 || !TEST_false(BN_rand(bn, 0, 1 /* top */ , 1 /* bottom */ )) in test_rand()
2085 || !TEST_false(BN_rand(bn, 1, 1 /* top */ , 0 /* bottom */ )) in test_rand()
2260 if (!TEST_false(BN_div(a, b, BN_value_one(), zero, ctx))) in test_badmod()
2264 if (!TEST_false(BN_mod_mul(a, BN_value_one(), BN_value_one(), zero, ctx))) in test_badmod()
[all …]
Dconf_include_test.c144 || !TEST_false(NCONF_get_number(NULL, "missing", "FNORD", &val))) { in test_check_null_numbers()
171 if (!TEST_false(NCONF_get_number(NULL, "missing", "FNORD", &val))) in test_check_overflow()
Dsiphash_internal_test.c265 && TEST_false(SipHash_Final(&siphash, output, 0)) in test_siphash_basic()
268 && TEST_false(SipHash_Final(&siphash, output, 8)) in test_siphash_basic()
Ddtls_mtu_test.c112 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()

123