/freebsd/crypto/openssl/test/ |
H A D | bio_callback_test.c | 64 if (!TEST_int_eq(i, test1len) in test_bio_callback_ex() 65 || !TEST_int_eq(my_param_count, 2) in test_bio_callback_ex() 67 || !TEST_int_eq(my_param_oper[0], BIO_CB_WRITE) in test_bio_callback_ex() 71 || !TEST_int_eq((int)my_param_ret[0], 1) in test_bio_callback_ex() 73 || !TEST_int_eq(my_param_oper[1], BIO_CB_WRITE | BIO_CB_RETURN) in test_bio_callback_ex() 78 || !TEST_int_eq((int)my_param_ret[1], 1)) in test_bio_callback_ex() 84 || !TEST_int_eq(my_param_count, 2) in test_bio_callback_ex() 86 || !TEST_int_eq(my_param_oper[0], BIO_CB_READ) in test_bio_callback_ex() 90 || !TEST_int_eq((int)my_param_ret[0], 1) in test_bio_callback_ex() 92 || !TEST_int_eq(my_param_oper[1], BIO_CB_READ | BIO_CB_RETURN) in test_bio_callback_ex() [all …]
|
H A D | ctype_internal_test.c | 30 if (!TEST_int_eq(isascii((unsigned char)n) != 0, ossl_isascii(n) != 0)) in test_ctype_chars() 36 return TEST_int_eq(isalpha(n) != 0, ossl_isalpha(n) != 0) in test_ctype_chars() 37 && TEST_int_eq(isalnum(n) != 0, ossl_isalnum(n) != 0) in test_ctype_chars() 39 && TEST_int_eq(isblank(n) != 0, ossl_isblank(n) != 0) in test_ctype_chars() 41 && TEST_int_eq(iscntrl(n) != 0, ossl_iscntrl(n) != 0) in test_ctype_chars() 42 && TEST_int_eq(isdigit(n) != 0, ossl_isdigit(n) != 0) in test_ctype_chars() 43 && TEST_int_eq(isgraph(n) != 0, ossl_isgraph(n) != 0) in test_ctype_chars() 44 && TEST_int_eq(islower(n) != 0, ossl_islower(n) != 0) in test_ctype_chars() 45 && TEST_int_eq(isprint(n) != 0, ossl_isprint(n) != 0) in test_ctype_chars() 46 && TEST_int_eq(ispunct(n) != 0, ossl_ispunct(n) != 0) in test_ctype_chars() [all …]
|
H A D | evp_libctx_test.c | 128 || !TEST_int_eq(EVP_PKEY_keygen(gen_ctx, &pkey), expected)) in test_dsa_param_keygen() 133 || !TEST_int_eq(EVP_PKEY_eq(pkey, dup_pk), 1)) in test_dsa_param_keygen() 191 || !TEST_int_eq(EVP_PKEY_keygen(gen_ctx, &pkey), expected)) in do_dh_param_keygen() 196 || !TEST_int_eq(EVP_PKEY_eq(pkey, dup_pk), 1)) in do_dh_param_keygen() 370 || !TEST_int_eq(EVP_EncryptUpdate(ctx, out2, &out2_len, in, sizeof(in)), in test_cipher_reinit() 374 || !TEST_int_eq(EVP_EncryptUpdate(ctx, out3, &out3_len, in, sizeof(in)), in test_cipher_reinit() 536 && TEST_int_eq(EVP_PKEY_encapsulate_init(sctx, NULL), 1) in kem_rsa_gen_recover() 537 && TEST_int_eq(EVP_PKEY_CTX_set_kem_op(sctx, "RSASVE"), 1) in kem_rsa_gen_recover() 539 && TEST_int_eq(EVP_PKEY_encapsulate(dctx, NULL, &ctlen, NULL, in kem_rsa_gen_recover() 541 && TEST_int_eq(ctlen, secretlen) in kem_rsa_gen_recover() [all …]
|
H A D | ssl_test_ctx_test.c | 39 if (!TEST_int_eq(conf1->verify_callback, conf2->verify_callback) in clientconf_eq() 40 || !TEST_int_eq(conf1->servername, conf2->servername) in clientconf_eq() 43 || !TEST_int_eq(conf1->ct_validation, conf2->ct_validation) in clientconf_eq() 44 || !TEST_int_eq(conf1->max_fragment_len_mode, in clientconf_eq() 53 if (!TEST_int_eq(serv->servername_callback, serv2->servername_callback) in serverconf_eq() 56 || !TEST_int_eq(serv->broken_session_ticket, in serverconf_eq() 60 || !TEST_int_eq(serv->cert_status, serv2->cert_status)) in serverconf_eq() 77 if (!TEST_int_eq(ctx->method, ctx2->method) in testctx_eq() 78 || !TEST_int_eq(ctx->handshake_mode, ctx2->handshake_mode) in testctx_eq() 79 || !TEST_int_eq(ctx->app_data_size, ctx2->app_data_size) in testctx_eq() [all …]
|
H A D | cmp_hdr_test.c | 53 if (!TEST_int_eq(ossl_cmp_hdr_set_pvno(fixture->hdr, pvno), 1)) in execute_HDR_set_get_pvno_test() 55 if (!TEST_int_eq(ossl_cmp_hdr_get_pvno(fixture->hdr), pvno)) in execute_HDR_set_get_pvno_test() 82 if (!TEST_int_eq(OSSL_CMP_CTX_set1_subjectName(fixture->cmp_ctx, sender), in execute_HDR_get0_senderNonce_test() 85 if (!TEST_int_eq(ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr), in execute_HDR_get0_senderNonce_test() 89 if (!TEST_int_eq(ASN1_OCTET_STRING_cmp(fixture->cmp_ctx->senderNonce, sn), in execute_HDR_get0_senderNonce_test() 117 if (!TEST_int_eq(ossl_cmp_hdr_set1_sender(fixture->hdr, x509name), 1)) in execute_HDR_set1_sender_test() 120 if (!TEST_int_eq(fixture->hdr->sender->type, GEN_DIRNAME)) in execute_HDR_set1_sender_test() 123 if (!TEST_int_eq(X509_NAME_cmp(fixture->hdr->sender->d.directoryName, 151 if (!TEST_int_eq(ossl_cmp_hdr_set1_recipient(fixture->hdr, x509name), 1)) in execute_HDR_set1_recipient_test() 154 if (!TEST_int_eq(fixtur [all...] |
H A D | namemap_internal_test.c | 24 ok = TEST_int_eq(ossl_namemap_empty(NULL), 1) in test_namemap_empty() 26 && TEST_int_eq(ossl_namemap_empty(nm), 1) in test_namemap_empty() 28 && TEST_int_eq(ossl_namemap_empty(nm), 0); in test_namemap_empty() 47 && TEST_int_eq(num1, num3) in test_namemap() 48 && TEST_int_eq(num3, num4) in test_namemap() 49 && TEST_int_eq(num1, check1) in test_namemap() 50 && TEST_int_eq(num2, check2) in test_namemap() 51 && TEST_int_eq(num3, check3) in test_namemap() 52 && TEST_int_eq(num4, check4) in test_namemap() 53 && TEST_int_eq(false1, 0); in test_namemap() [all …]
|
H A D | bio_memleak_test.c | 32 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(str))) in test_bio_memleak() 52 if (!TEST_int_eq(BIO_puts(bio, "Hello World\n"), 12)) in test_bio_get_mem() 81 if (!TEST_int_eq(BIO_read(bio, data, 5), 5)) in test_bio_new_mem_buf() 89 if (!TEST_int_eq(BIO_read(bio, data, 16), 7)) in test_bio_new_mem_buf() 95 if (!TEST_int_eq(BIO_read(bio, data, 16), 12)) in test_bio_new_mem_buf() 116 if (!TEST_int_eq(BIO_read(bio, data, 5), 5)) in test_bio_rdonly_mem_buf() 130 if (!TEST_int_eq(BIO_read(bio2, data, 16), 7)) in test_bio_rdonly_mem_buf() 136 if (!TEST_int_eq(BIO_read(bio2, data, 16), 7)) in test_bio_rdonly_mem_buf() 157 if (!TEST_int_eq(BIO_puts(bio, "Hello World\n"), 12)) in test_bio_rdwr_rdonly() 161 if (!TEST_int_eq(BIO_read(bio, data, 16), 12)) in test_bio_rdwr_rdonly() [all …]
|
H A D | asn1_time_test.c | 123 if (!TEST_int_eq(ASN1_TIME_check(&atime), td->check_result)) { in test_table() 130 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(&atime, td->t), 0)) { in test_table() 139 if (!TEST_int_eq(day, 0) || !TEST_int_eq(sec, 0)) { in test_table() 154 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(&atime, gtime_t), td->cmp_result)) { in test_table() 165 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(ptime, td->t), 0)) { in test_table() 170 if (!TEST_int_eq(ptime->type, td->expected_type)) { in test_table() 185 if (!TEST_int_eq(ASN1_TIME_set_string(ptime, td->data), td->check_result)) { in test_table() 189 if (!TEST_int_eq(ASN1_TIME_normalize(ptime), td->check_result)) { in test_table() 193 if (!TEST_int_eq(ptime->type, td->expected_type)) { in test_table() 198 …(!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(sec… in test_table() [all …]
|
H A D | stack_test.c | 93 if (!TEST_int_eq(sk_sint_num(s), i)) { in test_int_stack() 99 if (!TEST_int_eq(sk_sint_num(s), n)) in test_int_stack() 114 if (!TEST_int_eq(sk_sint_find(s, val), finds[i].unsorted)) { in test_int_stack() 125 if (!TEST_int_eq(sk_sint_find_ex(s, val), finds[i].unsorted)) { in test_int_stack() 141 if (!TEST_int_eq(sk_sint_find(s, &finds[i].value), finds[i].sorted)) { in test_int_stack() 148 if (!TEST_int_eq(sk_sint_find_ex(s, &finds[i].value), finds[i].ex)) { in test_int_stack() 153 if (!TEST_int_eq(sk_sint_find_ex(s, &exfinds[i].value), exfinds[i].ex)){ in test_int_stack() 188 if (!TEST_int_eq(sk_uchar_num(s), i)) { in test_uchar_stack() 194 if (!TEST_int_eq(sk_uchar_num(s), n)) in test_uchar_stack() 203 if (!TEST_int_eq(sk_uchar_num(r), n)) in test_uchar_stack() [all …]
|
H A D | ec_internal_test.c | 244 if (!TEST_int_eq(BN_cmp(x1, x2), 0) in underflow_test() 245 || !TEST_int_eq(BN_cmp(y1, y2), 0)) in underflow_test() 274 || !TEST_int_eq(EC_KEY_generate_key(key), 1) in set_private_key() 275 || !TEST_int_eq(EC_KEY_generate_key(aux_key), 1)) in set_private_key() 279 if (!TEST_int_eq(EC_KEY_set_private_key(key, aux_key->priv_key), 1)) in set_private_key() 283 if (!TEST_int_eq(EC_KEY_set_private_key(key, NULL), 0) in set_private_key() 313 || !TEST_int_eq(grp->decoded_from_explicit_params, 0)) in decoded_flag_test() 320 || !TEST_int_eq(grp->decoded_from_explicit_params, 0)) in decoded_flag_test() 326 || !TEST_int_eq(grp_copy->decoded_from_explicit_params, 0)) in decoded_flag_test() 334 if (!TEST_int_eq(EC_GROUP_get_asn1_flag(grp), OPENSSL_EC_NAMED_CURVE) in decoded_flag_test() [all …]
|
H A D | ssl_ctx_test.c | 46 if (!TEST_int_eq(SSL_CTX_set_min_proto_version(ctx, t.min_version), t.min_ok)) in test_set_min_max_version() 48 if (!TEST_int_eq(SSL_CTX_set_max_proto_version(ctx, t.max_version), t.max_ok)) in test_set_min_max_version() 50 if (!TEST_int_eq(SSL_CTX_get_min_proto_version(ctx), t.expected_min)) in test_set_min_max_version() 52 if (!TEST_int_eq(SSL_CTX_get_max_proto_version(ctx), t.expected_max)) in test_set_min_max_version() 55 if (!TEST_int_eq(SSL_set_min_proto_version(ssl, t.min_version), t.min_ok)) in test_set_min_max_version() 57 if (!TEST_int_eq(SSL_set_max_proto_version(ssl, t.max_version), t.max_ok)) in test_set_min_max_version() 59 if (!TEST_int_eq(SSL_get_min_proto_version(ssl), t.expected_min)) in test_set_min_max_version() 61 if (!TEST_int_eq(SSL_get_max_proto_version(ssl), t.expected_max)) in test_set_min_max_version()
|
H A D | curve448_internal_test.c | 606 || !TEST_int_eq(memcmp(sig1, outsig, sizeof(sig1)), 0) in test_ed448() 609 || !TEST_int_eq(memcmp(sig2, outsig, sizeof(sig2)), 0) in test_ed448() 613 || !TEST_int_eq(memcmp(sig3, outsig, sizeof(sig3)), 0) in test_ed448() 616 || !TEST_int_eq(memcmp(sig4, outsig, sizeof(sig4)), 0) in test_ed448() 619 || !TEST_int_eq(memcmp(sig5, outsig, sizeof(sig5)), 0) in test_ed448() 622 || !TEST_int_eq(memcmp(sig6, outsig, sizeof(sig6)), 0) in test_ed448() 625 || !TEST_int_eq(memcmp(sig7, outsig, sizeof(sig7)), 0) in test_ed448() 628 || !TEST_int_eq(memcmp(sig8, outsig, sizeof(sig8)), 0) in test_ed448() 631 || !TEST_int_eq(memcmp(sig9, outsig, sizeof(sig9)), 0) in test_ed448() 636 || !TEST_int_eq(memcmp(phsig1, outsig, sizeof(phsig1)), 0) in test_ed448() [all …]
|
H A D | x509_time_test.c | 268 if (!TEST_int_eq(result, x509_cmp_tests[idx].expected)) { in test_x509_cmp_time() 287 if (!TEST_int_eq(cmp_result, -1)) in test_x509_cmp_time_current() 291 if (!TEST_int_eq(cmp_result, 1)) in test_x509_cmp_time_current() 310 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, asn1_after), 0) in test_X509_cmp_timeframe_vpm() 311 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, NULL), 0) in test_X509_cmp_timeframe_vpm() 312 && TEST_int_eq(X509_cmp_timeframe(vpm, NULL, asn1_after), 0) in test_X509_cmp_timeframe_vpm() 313 && TEST_int_eq(X509_cmp_timeframe(vpm, NULL, NULL), 0) in test_X509_cmp_timeframe_vpm() 314 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_after, asn1_after), in test_X509_cmp_timeframe_vpm() 316 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_before, asn1_before), in test_X509_cmp_timeframe_vpm() 318 && TEST_int_eq(X509_cmp_timeframe(vpm, asn1_after, asn1_before), in test_X509_cmp_timeframe_vpm() [all …]
|
H A D | lhash_test.c | 109 if (!TEST_int_eq(lh_int_num_items(h), n_int_tests)) in test_int_lhash() 114 if (!TEST_int_eq(*lh_int_retrieve(h, int_tests + i), int_tests[i])) { in test_int_lhash() 140 if (!TEST_int_eq(int_not_found, 0)) { in test_int_lhash() 145 if (!TEST_int_eq(int_found[i], 1)) { in test_int_lhash() 154 if (!TEST_int_eq(int_not_found, 0)) { in test_int_lhash() 159 if (!TEST_int_eq(int_found[i], 1)) { in test_int_lhash() 167 if (!TEST_int_eq(b ^ dels[i].null, 0)) { in test_int_lhash() 174 if (!TEST_int_eq(lh_int_error(h), 0)) in test_int_lhash() 210 if (!TEST_int_eq(lh_int_num_items(h), n)) in test_stress() 226 if (!TEST_int_eq(*p, j)) { in test_stress()
|
H A D | ectest.c | 69 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx)) in group_order_tests() 73 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx))) in group_order_tests() 88 || (i == 1 && !TEST_int_eq(0, EC_POINT_cmp(group, P, G, ctx))) in group_order_tests() 93 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx)) in group_order_tests() 98 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx)) in group_order_tests() 103 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx))) in group_order_tests() 122 || !TEST_int_eq(0, EC_POINT_cmp(group, R, S, ctx))) in group_order_tests() 249 || !TEST_int_eq(0, EC_POINT_cmp(group, P, Q, ctx))) in prime_field_tests() 258 || !TEST_int_eq(0, EC_POINT_cmp(group, P, Q, ctx))) in prime_field_tests() 267 || !TEST_int_eq(0, EC_POINT_cmp(group, P, Q, ctx))) in prime_field_tests() [all …]
|
H A D | evp_pkey_provided_test.c | 387 if (!TEST_int_eq(EVP_PKEY_fromdata_init(ctx), 1) in test_fromdata_rsa() 388 || !TEST_int_eq(EVP_PKEY_fromdata(ctx, &pk, EVP_PKEY_KEYPAIR, in test_fromdata_rsa() 394 if (!TEST_int_eq(EVP_PKEY_get_bits(pk), 32) in test_fromdata_rsa() 395 || !TEST_int_eq(EVP_PKEY_get_security_bits(pk), 8) in test_fromdata_rsa() 396 || !TEST_int_eq(EVP_PKEY_get_size(pk), 4) in test_fromdata_rsa() 425 ret = ret && TEST_int_eq(EVP_PKEY_eq(pk, dup_pk), 1); in test_fromdata_rsa() 481 || !TEST_int_eq(EVP_PKEY_fromdata_init(ctx), 1) in test_evp_pkey_get_bn_param_large() 482 || !TEST_int_eq(EVP_PKEY_fromdata(ctx, &pk, EVP_PKEY_KEYPAIR, in test_evp_pkey_get_bn_param_large() 572 if (!TEST_int_eq(EVP_PKEY_fromdata_init(ctx), 1) in test_fromdata_dh_named_group() 573 || !TEST_int_eq(EVP_PKEY_fromdat in test_fromdata_dh_named_group() [all...] |
H A D | gmdifftest.c | 36 || !TEST_int_eq(tm1.tm_year, tm2.tm_year) in check_time() 37 || !TEST_int_eq(tm1.tm_mon, tm2.tm_mon) in check_time() 38 || !TEST_int_eq(tm1.tm_mday, tm2.tm_mday) in check_time() 39 || !TEST_int_eq(tm1.tm_hour, tm2.tm_hour) in check_time() 40 || !TEST_int_eq(tm1.tm_min, tm2.tm_min) in check_time() 41 || !TEST_int_eq(tm1.tm_sec, tm2.tm_sec) in check_time()
|
H A D | cipherbytes_test.c | 33 if (!TEST_int_eq(SSL_bytes_to_cipher_list(s, bytes, 0, 0, &sk, &scsv), 0) in test_empty() 55 || !TEST_int_eq(sk_SSL_CIPHER_num(sk), 1) in test_unsupported() 57 || !TEST_int_eq(sk_SSL_CIPHER_num(scsv), 0) in test_unsupported() 81 || !TEST_int_eq(sk_SSL_CIPHER_num(sk), 2) in test_v2() 83 || !TEST_int_eq(sk_SSL_CIPHER_num(scsv), 0)) in test_v2() 110 || !TEST_int_eq(sk_SSL_CIPHER_num(sk), 3) in test_v3() 112 || !TEST_int_eq(sk_SSL_CIPHER_num(scsv), 2) in test_v3()
|
H A D | punycode_test.c | 176 if (!TEST_int_eq(ossl_a2ulabel("xn--a.b.c", NULL, &outlen), 0) in test_a2ulabel() 178 || !TEST_int_eq(ossl_a2ulabel("xn--a.b.c", out, &outlen), 1)) in test_a2ulabel() 182 if (!TEST_int_eq(ossl_a2ulabel("xn--a.b.c", out, &outlen), 0) in test_a2ulabel() 184 || !TEST_int_eq(ossl_a2ulabel("xn--a.b.c", out, &outlen), 1) in test_a2ulabel() 189 if (!TEST_int_eq(ossl_a2ulabel("xn--a.b.c", out, &outlen), 0) in test_a2ulabel() 191 || !TEST_int_eq(ossl_a2ulabel("xn--a.b.c", out, &outlen), 1) in test_a2ulabel()
|
H A D | sslapitest.c | 194 if (!TEST_int_eq(hexed[0], hex_encoded[j]) in compare_hex_encoded_buffer() 195 || !TEST_int_eq(hexed[1], hex_encoded[j + 1])) in compare_hex_encoded_buffer() 512 || !TEST_int_eq(SSL_read_early_data(serverssl, buf, sizeof(buf), in test_keylog_no_master_key() 515 || !TEST_int_eq(SSL_get_early_data_status(serverssl), in test_keylog_no_master_key() 582 if (!TEST_int_eq(SSL_CTX_use_certificate_chain_file(sctx, leaf), 1) in test_client_cert_verify_cb() 583 || !TEST_int_eq(SSL_CTX_use_PrivateKey_file(sctx, skey, in test_client_cert_verify_cb() 585 || !TEST_int_eq(SSL_CTX_check_private_key(sctx), 1)) in test_client_cert_verify_cb() 656 if (!TEST_int_eq(SSL_use_certificate_chain_file(ssl, leaf_chain), 1) in test_ssl_build_cert_chain() 657 || !TEST_int_eq(SSL_use_PrivateKey_file(ssl, skey, SSL_FILETYPE_PEM), 1) in test_ssl_build_cert_chain() 658 || !TEST_int_eq(SSL_check_private_key(ssl), 1)) in test_ssl_build_cert_chain() [all …]
|
H A D | conf_include_test.c | 80 || !TEST_int_eq(err = ERR_peek_error(), 0)) { in test_load_config() 98 if (!TEST_int_eq(NCONF_get_number(conf, "CA_default", "default_days", &val), 1) in test_load_config() 99 || !TEST_int_eq(val, 365)) { in test_load_config() 106 if (!TEST_int_eq(NCONF_get_number(conf, "req", "default_bits", &val), 1) in test_load_config() 107 || !TEST_int_eq(val, 2048)) { in test_load_config() 132 if (!TEST_int_eq(setenv("FNORD", "123", 1), 0) in test_check_null_numbers() 143 if (!TEST_int_eq(unsetenv("FNORD"), 0) in test_check_null_numbers()
|
H A D | cmp_client_test.c | 95 return TEST_int_eq(OSSL_CMP_CTX_get_status(fixt->cmp_ctx), in execute_exec_RR_ses_test() 97 && TEST_int_eq(OSSL_CMP_exec_RR_ses(fixt->cmp_ctx), in execute_exec_RR_ses_test() 99 && TEST_int_eq(OSSL_CMP_CTX_get_status(fixt->cmp_ctx), fixt->expected); in execute_exec_RR_ses_test() 113 return TEST_int_eq(OSSL_CMP_CTX_get_status(ctx), fixture->expected) in execute_exec_GENM_ses_test_single() 132 if (!TEST_int_eq(status, fixture->expected) in execute_exec_certrequest_ses_test() 134 && TEST_int_eq(status, OSSL_CMP_PKISTATUS_trans))) in execute_exec_certrequest_ses_test() 139 if (!TEST_ptr(res) || !TEST_int_eq(X509_cmp(res, client_cert), 0)) in execute_exec_certrequest_ses_test() 143 int ret = TEST_int_eq(STACK_OF_X509_cmp(fixture->caPubs, caPubs), 0); in execute_exec_certrequest_ses_test() 363 return TEST_int_eq(-1, OSSL_CMP_try_certreq(ctx, TYPE, NULL, &check_after)) in execute_try_certreq_poll_test() 366 && TEST_int_eq(-1, OSSL_CMP_try_certreq(ctx, TYPE, NULL, &check_after)) in execute_try_certreq_poll_test() [all …]
|
H A D | ffc_internal_test.c | 424 if (!TEST_int_eq(ossl_ffc_params_FIPS186_4_validate(NULL, ¶ms, in ffc_params_fips186_2_gen_validate_test() 461 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_SMALL, res)) in ffc_public_validate_test() 468 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_SMALL, res)) in ffc_public_validate_test() 473 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_SMALL, res)) in ffc_public_validate_test() 486 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_LARGE, res)) in ffc_public_validate_test() 494 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_LARGE, res)) in ffc_public_validate_test() 502 if (!TEST_int_eq(FFC_ERROR_PUBKEY_INVALID, res)) in ffc_public_validate_test() 514 if (!TEST_int_eq(FFC_ERROR_PASSED_NULL_PARAM, res)) in ffc_public_validate_test() 520 if (!TEST_int_eq(FFC_ERROR_PASSED_NULL_PARAM, res)) in ffc_public_validate_test() 529 if (!TEST_int_eq(FFC_ERROR_PASSED_NULL_PARAM, res)) in ffc_public_validate_test() [all …]
|
H A D | context_internal_test.c | 58 && TEST_int_eq(data->i, 42); in test_context() 93 if (!TEST_int_eq(data->i, 43)) in test_set0_default() 98 || !TEST_int_eq(data->i, 42)) in test_set0_default() 105 || !TEST_int_eq(data->i, 43)) in test_set0_default() 111 || !TEST_int_eq(data->i, 43)) in test_set0_default() 122 || !TEST_int_eq(data->i, 42)) in test_set0_default()
|
H A D | evp_extra_test2.c | 293 if (!TEST_int_eq(EVP_PKEY_todata(key, EVP_PKEY_PUBLIC_KEY, &pub_params), 1) in do_pkey_tofrom_data_select() 300 if (!TEST_int_eq(EVP_PKEY_todata(key, EVP_PKEY_KEYPAIR, &keypair_params), 1) in do_pkey_tofrom_data_select() 309 || !TEST_int_eq(EVP_PKEY_fromdata_init(fromctx), 1) in do_pkey_tofrom_data_select() 310 || !TEST_int_eq(EVP_PKEY_fromdata(fromctx, &fromkey, EVP_PKEY_PUBLIC_KEY, in do_pkey_tofrom_data_select() 318 if (!TEST_int_eq(EVP_PKEY_fromdata(fromctx, &fromkeypair, in do_pkey_tofrom_data_select() 384 && TEST_int_eq(EVP_PKEY_param_check(gctx), 1) in test_dh_paramgen() 385 && TEST_int_eq(EVP_PKEY_param_check_quick(gctx), 1); in test_dh_paramgen() 463 || !TEST_int_eq(EVP_PKEY_get_id(pkey), expected_id)) in test_d2i_AutoPrivateKey_ex() 518 && TEST_int_eq(i2d_PKCS8PrivateKey_nid_bio(enc_bio, pkey, nid, in test_pkcs8key_nid_bio() 627 TEST_int_eq(ERR_peek_error(), 0); in test_d2i_PrivateKey_ex() [all …]
|