/third_party/openssl/test/ |
D | evp_extra_test.c | 700 if (!TEST_int_gt(EVP_PKEY_fromdata_init(pctx), 0) in make_key_fromdata() 701 || !TEST_int_gt(EVP_PKEY_fromdata(pctx, &tmp_pkey, EVP_PKEY_KEYPAIR, in make_key_fromdata() 996 if (!TEST_int_gt(EVP_PKEY_parameters_eq(just_params, just_params), 0) in test_EC_priv_pub() 997 || !TEST_int_gt(EVP_PKEY_parameters_eq(just_params, params_and_pub), in test_EC_priv_pub() 999 || !TEST_int_gt(EVP_PKEY_parameters_eq(just_params, params_and_priv), in test_EC_priv_pub() 1001 || !TEST_int_gt(EVP_PKEY_parameters_eq(just_params, params_and_keypair), in test_EC_priv_pub() 1003 || !TEST_int_gt(EVP_PKEY_eq(params_and_pub, params_and_pub), 0) in test_EC_priv_pub() 1004 || !TEST_int_gt(EVP_PKEY_eq(params_and_priv, params_and_priv), 0) in test_EC_priv_pub() 1005 || !TEST_int_gt(EVP_PKEY_eq(params_and_keypair, params_and_pub), 0) in test_EC_priv_pub() 1006 || !TEST_int_gt(EVP_PKEY_eq(params_and_keypair, params_and_priv), 0)) in test_EC_priv_pub() [all …]
|
D | bio_memleak_test.c | 57 if (!TEST_int_gt(BIO_set_close(bio, BIO_NOCLOSE), 0)) in test_bio_get_mem() 85 if (!TEST_int_gt(BIO_get_mem_ptr(bio, &bufmem), 0)) in test_bio_new_mem_buf() 93 if (!TEST_int_gt(BIO_reset(bio), 0)) in test_bio_new_mem_buf() 120 if (!TEST_int_gt(BIO_get_mem_ptr(bio, &bufmem), 0)) in test_bio_rdonly_mem_buf() 134 if (!TEST_int_gt(BIO_reset(bio2), 0)) in test_bio_rdonly_mem_buf() 165 if (!TEST_int_gt(BIO_reset(bio), 0)) in test_bio_rdwr_rdonly() 202 if (!TEST_int_gt(BIO_reset(bio), 0)) in test_bio_nonclear_rst() 211 if (!TEST_int_gt(BIO_reset(bio), 0)) in test_bio_nonclear_rst()
|
D | dsatest.c | 115 if (TEST_int_gt(DSA_verify(0, str1, 20, sig, siglen, dsa), 0)) in dsa_test() 249 || !TEST_int_gt(EVP_PKEY_paramgen_init(pg_ctx), 0) in dsa_keygen_test() 261 || !TEST_int_gt(EVP_PKEY_generate(pg_ctx, ¶m_key), 0) in dsa_keygen_test() 263 || !TEST_int_gt(EVP_PKEY_keygen_init(kg_ctx), 0) in dsa_keygen_test() 264 || !TEST_int_gt(EVP_PKEY_generate(kg_ctx, &key), 0)) in dsa_keygen_test() 315 && TEST_int_gt(EVP_PKEY_paramgen_init(gen_ctx), 0) in test_dsa_default_paramgen_validate() 318 && TEST_int_gt(EVP_PKEY_generate(gen_ctx, ¶ms), 0) in test_dsa_default_paramgen_validate() 320 && TEST_int_gt(EVP_PKEY_param_check(check_ctx), 0); in test_dsa_default_paramgen_validate()
|
D | evp_pkey_provided_test.c | 111 if (!TEST_int_gt(len, 0)) in compare_with_file() 183 || !TEST_int_gt(EVP_PKEY_print_private(membio, pk, 0, NULL), 0) in test_print_key_using_pem() 399 if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0) in test_fromdata_rsa() 400 || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0) in test_fromdata_rsa() 401 || !TEST_int_gt(EVP_PKEY_private_check(key_ctx), 0) in test_fromdata_rsa() 402 || !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0)) in test_fromdata_rsa() 663 if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0) in test_fromdata_dh_named_group() 664 || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0) in test_fromdata_dh_named_group() 665 || !TEST_int_gt(EVP_PKEY_private_check(key_ctx), 0) in test_fromdata_dh_named_group() 666 || !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0)) in test_fromdata_dh_named_group() [all …]
|
D | evp_kdf_test.c | 74 && TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), params), 0) in test_kdf_tls1_prf() 130 && TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), params), 0); in test_kdf_tls1_prf_empty_secret() 148 && TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), params), 0); in test_kdf_tls1_prf_1byte_secret() 186 && TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), params), 0); in test_kdf_tls1_prf_1byte_seed() 234 && TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), params), 0) in test_kdf_hkdf() 433 && TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), params), 0); in test_kdf_hkdf_empty_key() 451 && TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), params), 0); in test_kdf_hkdf_1byte_key() 469 && TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), params), 0); in test_kdf_hkdf_empty_salt() 533 || !TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), NULL), 0) in test_kdf_pbkdf1() 590 || !TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), params), 0) in test_kdf_pbkdf2() [all …]
|
D | bio_core_test.c | 87 if (!TEST_int_gt(BIO_puts(corebio.bio, msg), 0) in test_bio_core() 90 || !TEST_int_gt(BIO_gets(cbio, buf, sizeof(buf)), 0) in test_bio_core() 96 if (!TEST_int_gt(BIO_write(cbio, msg, strlen(msg) + 1), 0) in test_bio_core() 97 || !TEST_int_gt(BIO_read(cbio, buf, sizeof(buf)), 0) in test_bio_core()
|
D | enginetest.c | 273 if (!TEST_int_gt(EVP_PKEY_encrypt_init(ctx), 0) in test_redirect() 274 || !TEST_int_gt(EVP_PKEY_encrypt(ctx, tmp, &len, pt, sizeof(pt)), 0) in test_redirect() 316 if (!TEST_int_gt(EVP_PKEY_encrypt_init(ctx), 0) in test_redirect() 317 || !TEST_int_gt(EVP_PKEY_encrypt(ctx, tmp, &len, pt, sizeof(pt)), 0) in test_redirect() 327 || !TEST_int_gt(EVP_PKEY_encrypt_init(ctx), 0) in test_redirect() 328 || !TEST_int_gt(EVP_PKEY_encrypt(ctx, tmp, &len, pt, sizeof(pt)), 0) in test_redirect() 343 || !TEST_int_gt(EVP_PKEY_encrypt_init(ctx), 0) in test_redirect() 344 || !TEST_int_gt(EVP_PKEY_encrypt(ctx, tmp, &len, pt, sizeof(pt)), 0) in test_redirect()
|
D | drbgtest.c | 542 if (!TEST_int_gt(RAND_bytes(random, 1), 0) || !TEST_int_gt(RAND_priv_bytes(random, 1), 0)) in test_rand_fork_safety() 838 || !TEST_int_gt(reseed_counter(z), zreseed)) in test_rand_prediction_resistance() 847 || !TEST_int_gt(reseed_counter(x), xreseed) in test_rand_prediction_resistance() 848 || !TEST_int_gt(reseed_counter(y), yreseed) in test_rand_prediction_resistance() 849 || !TEST_int_gt(reseed_counter(z), zreseed)) in test_rand_prediction_resistance() 861 || !TEST_int_gt(reseed_counter(z), zreseed)) in test_rand_prediction_resistance() 870 || !TEST_int_gt(reseed_counter(x), xreseed) in test_rand_prediction_resistance() 871 || !TEST_int_gt(reseed_counter(y), yreseed) in test_rand_prediction_resistance() 872 || !TEST_int_gt(reseed_counter(z), zreseed) in test_rand_prediction_resistance() 884 || !TEST_int_gt(reseed_counter(z), zreseed)) in test_rand_prediction_resistance()
|
D | acvp_test.c | 102 || !TEST_int_gt(EVP_DigestSign(md_ctx, sig, &sig_len, msg, msg_len), 0)) in sig_gen() 296 ret = TEST_int_gt((sig_len = i2d_ECDSA_SIG(sign, &sig)), 0) in ecdsa_sigver_test() 343 || !TEST_int_gt(EVP_PKEY_paramgen_init(paramgen_ctx), 0) in dsa_paramgen() 360 || !TEST_int_gt(EVP_PKEY_keygen_init(keygen_ctx), 0) in dsa_keygen() 361 || !TEST_int_gt(EVP_PKEY_keygen(keygen_ctx, &key), 0)) in dsa_keygen() 381 || !TEST_int_gt(EVP_PKEY_keygen_init(keygen_ctx), 0)) in dsa_keygen_test() 384 if (!TEST_int_gt(EVP_PKEY_keygen(keygen_ctx, &key), 0) in dsa_keygen_test() 419 || !TEST_int_gt(EVP_PKEY_paramgen_init(paramgen_ctx), 0) in dsa_paramgen_test() 649 if (!TEST_int_gt((sig_len = i2d_DSA_SIG(sign, &sig)), 0) in dsa_sigver_test() 651 || !TEST_int_gt(EVP_PKEY_verify_init(ctx), 0) in dsa_sigver_test() [all …]
|
D | rand_test.c | 30 || !TEST_int_gt(RAND_priv_bytes(outbuf, sizeof(outbuf)), 0) in test_rand() 33 || !TEST_int_gt(RAND_priv_bytes(outbuf, sizeof(outbuf)), 0) in test_rand() 41 || !TEST_int_gt(RAND_priv_bytes(outbuf, sizeof(outbuf)), 0) in test_rand()
|
D | ec_internal_test.c | 232 if (!TEST_int_gt(BN_hex2bn(&x1, x1str), 0) in underflow_test() 233 || !TEST_int_gt(BN_hex2bn(&y1, p521m1), 0) in underflow_test() 234 || !TEST_int_gt(BN_hex2bn(&z1, p521m1), 0) in underflow_test() 235 || !TEST_int_gt(BN_hex2bn(&k, "02"), 0) in underflow_test() 351 if (!TEST_int_gt(encodedlen = i2d_ECPKParameters(grp, &encodedparams), 0) in decoded_flag_test() 372 if (!TEST_int_gt(encodedlen = i2d_ECPKParameters(grp, &encodedparams), 0) in decoded_flag_test()
|
D | evp_pkey_dparams_test.c | 259 && TEST_int_gt(i2d_KeyParams_bio(out, in_key), 0) in params_bio_test() 261 && TEST_int_gt(out_len = BIO_get_mem_data(out, &out_bin), 0) in params_bio_test() 300 && TEST_int_gt(EVP_PKEY_set1_encoded_public_key(in_key, in set_enc_pubkey_test()
|
D | evp_extra_test2.c | 346 && TEST_int_gt(EVP_PKEY_keygen_init(gctx), 0) in test_dh_tofrom_data_select() 348 && TEST_int_gt(EVP_PKEY_generate(gctx, &key), 0) in test_dh_tofrom_data_select() 475 && TEST_int_gt(enc_datalen = BIO_get_mem_data(enc_bio, &enc_data), 0) in test_pkcs8key_nid_bio() 825 && TEST_int_gt(len = BN_bn2binpad(bn, buffer, expected_len), 0) in do_check_bn() 1032 && TEST_int_gt(EVP_PKEY_sign_init_ex(pctx, sig_params), 0) in test_rsa_pss_sign() 1033 && TEST_int_gt(EVP_PKEY_sign(pctx, NULL, &sig_len, mdbuf, in test_rsa_pss_sign() 1035 && TEST_int_gt(sig_len, 0) in test_rsa_pss_sign() 1037 && TEST_int_gt(EVP_PKEY_sign(pctx, sig, &sig_len, mdbuf, in test_rsa_pss_sign()
|
D | evp_fetch_prov_test.c | 223 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 0), 0)) in test_explicit_EVP_MD_fetch_by_X509_ALGOR() 227 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 1), 0)) in test_explicit_EVP_MD_fetch_by_X509_ALGOR() 339 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 0), 0)) in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR() 343 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 1), 0)) in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR()
|
D | danetest.c | 392 || !TEST_int_gt(SSL_CTX_dane_enable(ctx), 0) in run_tlsatest() 394 || !TEST_int_gt(SSL_CTX_dane_mtype_set(ctx, EVP_sha512(), 2, 1), 0) in run_tlsatest() 395 || !TEST_int_gt(SSL_CTX_dane_mtype_set(ctx, EVP_sha256(), 1, 2), 0) in run_tlsatest() 396 || !TEST_int_gt(test_tlsafile(ctx, basedomain, f, tlsafile), 0)) in run_tlsatest()
|
D | ectest.c | 208 if (!TEST_int_gt(EC_POINT_is_on_curve(group, Q, ctx), 0)) { in prime_field_tests() 300 || !TEST_int_gt(EC_POINT_is_on_curve(group, P, ctx), 0) in prime_field_tests() 329 || !TEST_int_gt(EC_POINT_is_on_curve(group, P, ctx), 0) in prime_field_tests() 366 || !TEST_int_gt(EC_POINT_is_on_curve(group, P, ctx), 0) in prime_field_tests() 404 || !TEST_int_gt(EC_POINT_is_on_curve(group, P, ctx), 0) in prime_field_tests() 446 || !TEST_int_gt(EC_POINT_is_on_curve(group, P, ctx), 0) in prime_field_tests() 496 || !TEST_int_gt(EC_POINT_is_on_curve(group, P, ctx), 0) in prime_field_tests() 533 || !TEST_int_gt(EC_POINT_is_on_curve(group, P, ctx), 0) in prime_field_tests() 823 || !TEST_int_gt(EC_POINT_is_on_curve(group, P, ctx), 0) in char2_curve_test() 843 || !TEST_int_gt(EC_POINT_is_on_curve(group, P, ctx), 0) in char2_curve_test() [all …]
|
D | conf_include_test.c | 79 if (!TEST_int_gt(NCONF_load_bio(conf, in, &errline), 0) in test_load_config() 91 if (!TEST_int_gt(CONF_modules_load(conf, NULL, 0), 0)) { in test_load_config()
|
D | exptest.c | 147 if (!TEST_int_gt(RAND_bytes(&c, 1), 0)) in test_mod_exp() 154 if (!TEST_int_gt(RAND_bytes(&c, 1), 0)) in test_mod_exp() 161 if (!TEST_int_gt(RAND_bytes(&c, 1), 0)) in test_mod_exp()
|
D | dhtest.c | 254 if (!TEST_int_gt(sz = DH_size(dh), 0) in dh_computekey_range_test() 584 if (!TEST_int_gt(szA = DH_size(dhA), 0) in rfc5114_test() 585 || !TEST_int_gt(szB = DH_size(dhB), 0) in rfc5114_test() 673 if (!TEST_int_gt(alen, 0) || !TEST_ptr(abuf = OPENSSL_malloc(alen)) in rfc7919_test() 678 if (!TEST_int_gt(blen, 0) || !TEST_ptr(bbuf = OPENSSL_malloc(blen)) in rfc7919_test()
|
D | dtls_mtu_test.c | 174 if (!TEST_int_gt(ret = mtu_test(ctx, cipher_name, 0), 0)) in run_mtu_tests() 181 if (!TEST_int_gt(ret = mtu_test(ctx, cipher_name, 1), 0)) in run_mtu_tests()
|
D | provider_pkey_test.c | 135 if (!TEST_int_gt(EVP_PKEY_keygen_init(ctx), 0)) in test_alternative_keygen_init() 158 if (!TEST_int_gt(EVP_PKEY_keygen_init(ctx), 0)) in test_alternative_keygen_init()
|
D | ecdsatest.c | 49 || !TEST_int_gt(BN_bn2binpad(tmp, buf, num), 0)) in fbytes() 183 || !TEST_int_gt(EVP_PKEY_CTX_set1_id(pctx, sm2_id, sizeof(sm2_id)), 0)) in set_sm2_id() 226 || !TEST_int_gt(RAND_bytes(tbs, sizeof(tbs)), 0) in test_builtin()
|
D | fake_rsaprov.c | 201 if (!TEST_ptr(keydata) || !TEST_int_gt(keydata[0], 0)) in fake_rsa_sig_sign_init() 300 if (!TEST_int_gt(fake_rsa_keymgmt_import(key, 0, NULL), 0)) in fake_rsa_st_load()
|
/third_party/openssl/test/testutil/ |
D | load.c | 25 if (TEST_int_gt(BIO_read_filename(bio, file), 0) in load_cert_pem() 76 if (TEST_int_gt(BIO_read_filename(bio, file), 0)) { in load_pkey_pem()
|
D | stanza.c | 48 } else if (!TEST_int_gt(BIO_reset(s->key), 0)) { in read_key() 55 if (!TEST_int_gt(BIO_puts(s->key, tmpbuf), 0)) in read_key()
|