Home
last modified time | relevance | path

Searched refs:expected_len (Results 1 – 13 of 13) sorted by relevance

/openssl/test/
H A Dhexstr_test.c22 size_t expected_len; member
71 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_sep_to_from()
93 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_to_from()
121 && TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_ex_to_from()
H A Dquic_record_test.c1946 size_t expected_len; member
2765 int is_trunc = trunc_len < t->expected_len; in test_wire_pkt_hdr_actual()
2834 t->expected_len - t->sample_offset)) in test_wire_pkt_hdr_actual()
2847 if (!TEST_mem_eq(buf, l, t->expected, t->expected_len)) in test_wire_pkt_hdr_actual()
2864 hbuf = OPENSSL_malloc(t->expected_len); in test_wire_pkt_hdr_actual()
2868 memcpy(hbuf, t->expected, t->expected_len); in test_wire_pkt_hdr_actual()
2878 for (i = 0; i < t->expected_len; ++i) { in test_wire_pkt_hdr_actual()
2915 if (!TEST_mem_eq(hbuf, t->expected_len, t->expected, t->expected_len)) in test_wire_pkt_hdr_actual()
2938 t->expected_len))) in test_wire_pkt_hdr_inner()
2942 for (i = 0; i < t->expected_len; ++i) in test_wire_pkt_hdr_inner()
H A Dtrace_api_test.c125 static const size_t expected_len = sizeof(expected) - 1; in test_trace_channel() local
152 if (!TEST_strn2_eq(p_buf, len, expected, expected_len)) in test_trace_channel()
H A Dssl_test.c198 size_t expected_len = 0; in check_session_ticket_app_data() local
204 expected_len = strlen(test_ctx->expected_session_ticket_app_data); in check_session_ticket_app_data()
205 if (result_len == 0 && expected_len == 0) in check_session_ticket_app_data()
H A Dasn1_encode_test.c521 const unsigned char *expected, size_t expected_len, in do_encode() argument
532 if ((size_t)len != expected_len in do_encode()
533 || memcmp(data, expected, expected_len) != 0) { in do_encode()
H A Dquic_wire_test.c1458 char expected_len; member
1495 if (!TEST_int_eq(pn_len, (int)t->expected_len)) in test_wire_pkt_hdr_pn()
1501 if (!TEST_mem_eq(t->expected_bytes, t->expected_len, buf, pn_len)) in test_wire_pkt_hdr_pn()
H A Devp_extra_test2.c1052 const unsigned char *expected, size_t expected_len) in do_check_bn() argument
1061 && TEST_int_gt(len = BN_bn2binpad(bn, buffer, expected_len), 0) in do_check_bn()
1062 && TEST_mem_eq(expected, expected_len, buffer, len); in do_check_bn()
H A Devp_test.c319 const void *expected, size_t expected_len, in memory_err_compare() argument
325 r = !TEST_mem_ne(expected, expected_len, got, got_len); in memory_err_compare()
327 r = TEST_mem_eq(expected, expected_len, got, got_len); in memory_err_compare()
/openssl/providers/fips/
H A Dself_test_kats.c49 if (out_len != t->expected_len in self_test_digest()
121 if (ct_len != (int)t->base.expected_len in self_test_cipher()
139 t->base.expected, t->base.expected_len) in self_test_cipher()
236 if (t->expected_len > sizeof(out)) in self_test_kdf()
238 if (EVP_KDF_derive(ctx, out, t->expected_len, params) <= 0) in self_test_kdf()
243 if (memcmp(out, t->expected, t->expected_len) != 0) in self_test_kdf()
378 size_t secret_len = t->expected_len; in self_test_ka()
431 if (secret_len != t->expected_len in self_test_ka()
432 || memcmp(secret, t->expected, t->expected_len) != 0) in self_test_ka()
H A Dself_test.c243 unsigned char *expected, size_t expected_len, in verify_integrity() argument
284 if (expected_len != out_len in verify_integrity()
H A Dself_test_data.inc49 size_t expected_len;
80 size_t expected_len;
115 size_t expected_len;
146 size_t expected_len;
/openssl/doc/man3/
H A DOSSL_SELF_TEST_new.pod144 if (out_len != t->expected_len
/openssl/ssl/statem/
H A Dextensions_clnt.c1262 size_t expected_len = s->s3.previous_client_finished_len in tls_parse_stoc_renegotiate() local
1268 if (!ossl_assert(expected_len == 0 in tls_parse_stoc_renegotiate()
1270 || !ossl_assert(expected_len == 0 in tls_parse_stoc_renegotiate()
1289 if (ilen != expected_len) { in tls_parse_stoc_renegotiate()

Completed in 61 milliseconds