Symbol: expected
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
259
char expected[4096];
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
260
sprintf(expected, "Pool unit_test_pool: %s\n", msg);
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
263
EXPECT_STREQ(expected, syslog_last_message);
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
269
char expected[4096];
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
270
sprintf(expected, "Pool unit_test_pool: %s\n", msg);
cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
273
EXPECT_STREQ(expected, syslog_last_message);
crypto/heimdal/kdc/kx509.c
358
char *expected, *used;
crypto/heimdal/kdc/kx509.c
360
ret = krb5_unparse_name(context, sprincipal, &expected);
crypto/heimdal/kdc/kx509.c
365
krb5_xfree(expected);
crypto/heimdal/kdc/kx509.c
373
cname, expected, used);
crypto/heimdal/kdc/kx509.c
374
krb5_xfree(expected);
crypto/heimdal/lib/hx509/test_name.c
72
test_expand(hx509_context context, const char *name, const char *expected)
crypto/heimdal/lib/hx509/test_name.c
95
ret = strcmp(s, expected) != 0;
crypto/heimdal/lib/krb5/store-test.c
48
compare(const char *name, krb5_storage *sp, void *expected, size_t len)
crypto/heimdal/lib/krb5/store-test.c
55
if(data.length != len || memcmp(data.data, expected, len) != 0) {
crypto/heimdal/lib/krb5/store-test.c
58
print_data(expected, len);
crypto/heimdal/lib/krb5/test_config.c
174
const char ** expected;
crypto/heimdal/lib/krb5/test_config.c
215
e = config_strings_tests[i].expected;
crypto/krb5/src/lib/crypto/builtin/aes/aes-gen.c
105
if (memcmp(expected, output, 16))
crypto/krb5/src/lib/crypto/builtin/aes/aes-gen.c
85
static const unsigned char expected[16] = {
crypto/krb5/src/lib/crypto/builtin/camellia/camellia-gen.c
61
static const unsigned char expected[16] = {
crypto/krb5/src/lib/crypto/builtin/camellia/camellia-gen.c
81
if (memcmp(expected, output, 16))
crypto/krb5/src/lib/crypto/crypto_tests/t_cmac.c
87
const unsigned char *expected)
crypto/krb5/src/lib/crypto/crypto_tests/t_cmac.c
92
if (result[i] != expected[i]) {
crypto/krb5/src/lib/crypto/crypto_tests/t_pkcs5.c
54
const unsigned char expected[24];
crypto/krb5/src/lib/crypto/crypto_tests/t_pkcs5.c
86
if (!memcmp(x, t[i].expected, t[i].len))
crypto/krb5/src/lib/crypto/crypto_tests/t_prf.c
141
if (!data_eq(output, tests[i].expected)) {
crypto/krb5/src/lib/crypto/crypto_tests/t_prf.c
39
krb5_data expected;
crypto/krb5/src/lib/kadm5/t_kadm5.c
59
check_fail(krb5_error_code code, krb5_error_code expected)
crypto/krb5/src/lib/kadm5/t_kadm5.c
61
assert(code == expected);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1040
struct k5buf expected = EMPTY_K5BUF, overwrite = EMPTY_K5BUF;
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1046
k5_buf_init_dynamic_zap(&expected);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1050
k5_marshal_cred(&expected, fcursor->version, cred);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1051
ret = k5_buf_status(&expected);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1073
if (expected.len != overwrite.len) {
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1090
start_offset -= expected.len;
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1097
on_disk = k5alloc(expected.len, &ret);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1100
rwret = read(fd, on_disk, expected.len);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1104
} else if ((size_t)rwret != expected.len) {
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1114
if (memcmp(on_disk, expected.data, expected.len) != 0)
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1131
zapfree(on_disk, expected.len);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1132
k5_buf_free(&expected);
crypto/krb5/src/lib/krb5/ccache/t_cc.c
208
check_num_entries(krb5_context context, krb5_ccache cache, int expected,
crypto/krb5/src/lib/krb5/ccache/t_cc.c
236
if (count != expected) {
crypto/krb5/src/lib/krb5/ccache/t_cc.c
239
linenum, expected, count);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
153
krb5_keyblock *kdc_key = NULL, *expected = NULL;
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
184
as_key, "KEYEXCHANGE", &expected);
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
187
if ((expected->enctype != session->enctype) ||
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
188
(expected->length != session->length) ||
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
189
(memcmp(expected->contents, session->contents, expected->length) != 0))
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
194
if (expected)
crypto/krb5/src/lib/krb5/krb/get_in_tkt.c
195
krb5_free_keyblock(context, expected);
crypto/krb5/src/lib/krb5/krb/t_deltat.c
145
} else if (result != values[i].expected) {
crypto/krb5/src/lib/krb5/krb/t_deltat.c
147
(long) result, (long) values[i].expected,
crypto/krb5/src/lib/krb5/krb/t_deltat.c
34
krb5_deltat expected;
crypto/krb5/src/lib/krb5/krb/t_etypes.c
150
compare(krb5_context ctx, krb5_enctype *result, krb5_enctype *expected,
crypto/krb5/src/lib/krb5/krb/t_etypes.c
158
if (result[i] != expected[i])
crypto/krb5/src/lib/krb5/krb/t_etypes.c
161
if (!result[i] && !expected[i]) /* Success! */
crypto/krb5/src/lib/krb5/krb/t_etypes.c
166
show_enctypes(ctx, expected);
crypto/krb5/src/lib/krb5/krb/t_etypes.c
217
(weak) ? tests[i].expected : tests[i].expected_noweak,
crypto/krb5/src/lib/krb5/krb/t_etypes.c
35
krb5_enctype expected[64];
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
112
n - 1 , expected);
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
16
int n = 0, i = 0, expected;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
88
expected = n;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
48
#define TRACE_PKINIT_CLIENT_REP_CHECKSUM_FAIL(c, expected, received) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
50
"received {cksum}", expected, received)
crypto/krb5/src/plugins/tls/k5tls/openssl.c
105
if (ascii_tolower(presented[i]) != ascii_tolower(expected[i]))
crypto/krb5/src/plugins/tls/k5tls/openssl.c
113
domain_match(const char *presented, size_t plen, const char *expected)
crypto/krb5/src/plugins/tls/k5tls/openssl.c
121
r = expected;
crypto/krb5/src/plugins/tls/k5tls/openssl.c
230
check_cert_servername(X509 *x, const char *expected)
crypto/krb5/src/plugins/tls/k5tls/openssl.c
252
matched = domain_match((char *)dnsname, name_length, expected);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
268
return domain_match(buf, name_length, expected);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
91
label_match(const char *presented, size_t plen, const char *expected,
crypto/krb5/src/util/profile/t_profile.c
50
check_fail(long code, long expected)
crypto/krb5/src/util/profile/t_profile.c
52
assert(code == expected);
crypto/libecc/src/arithmetic_tests/arithmetic_tests.c
406
const char expected[] = "Expected ";\
crypto/libecc/src/arithmetic_tests/arithmetic_tests.c
407
char expected_modified_string_names[sizeof(expected)+sizeof(parameters_string_names_)];\
crypto/libecc/src/arithmetic_tests/arithmetic_tests.c
439
strcat(expected_modified_string_names, expected);\
crypto/openssh/libcrux_internal.h
26072
expected =
crypto/openssh/libcrux_internal.h
26080
return Eurydice_array_eq_slice_shared((size_t)32U, &t, &expected, uint8_t, bool);
crypto/openssh/regress/unittests/authopt/tests.c
108
if (expected->x == NULL) \
crypto/openssh/regress/unittests/authopt/tests.c
109
ASSERT_PTR_EQ(opts->x, expected->x); \
crypto/openssh/regress/unittests/authopt/tests.c
111
ASSERT_STRING_EQ(opts->x, expected->x); \
crypto/openssh/regress/unittests/authopt/tests.c
121
ASSERT_SIZE_T_EQ(opts->nx, expected->nx); \
crypto/openssh/regress/unittests/authopt/tests.c
122
if (expected->nx == 0) \
crypto/openssh/regress/unittests/authopt/tests.c
124
for (i = 0; i < expected->nx; i++) \
crypto/openssh/regress/unittests/authopt/tests.c
125
ASSERT_STRING_EQ(opts->x[i], expected->x[i]); \
crypto/openssh/regress/unittests/authopt/tests.c
135
struct sshauthopt *opts, *expected;
crypto/openssh/regress/unittests/authopt/tests.c
151
compare_opts(opts, expected); \
crypto/openssh/regress/unittests/authopt/tests.c
152
sshauthopt_free(expected); \
crypto/openssh/regress/unittests/authopt/tests.c
158
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
164
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
170
expected = default_authkey_restrict_opts();
crypto/openssh/regress/unittests/authopt/tests.c
184
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
185
expected->force_tun_device = 1;
crypto/openssh/regress/unittests/authopt/tests.c
191
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
192
expected->force_tun_device = SSH_TUNID_ANY;
crypto/openssh/regress/unittests/authopt/tests.c
203
expected = default_authkey_opts(); \
crypto/openssh/regress/unittests/authopt/tests.c
204
expected->var = val; \
crypto/openssh/regress/unittests/authopt/tests.c
207
expected = default_authkey_restrict_opts(); \
crypto/openssh/regress/unittests/authopt/tests.c
208
expected->var = val; \
crypto/openssh/regress/unittests/authopt/tests.c
233
expected = default_authkey_opts(); \
crypto/openssh/regress/unittests/authopt/tests.c
234
expected->var = strdup(val); \
crypto/openssh/regress/unittests/authopt/tests.c
235
ASSERT_PTR_NE(expected->var, NULL); \
crypto/openssh/regress/unittests/authopt/tests.c
238
expected = default_authkey_restrict_opts(); \
crypto/openssh/regress/unittests/authopt/tests.c
239
expected->var = strdup(val); \
crypto/openssh/regress/unittests/authopt/tests.c
240
ASSERT_PTR_NE(expected->var, NULL); \
crypto/openssh/regress/unittests/authopt/tests.c
258
expected = default_authkey_opts(); \
crypto/openssh/regress/unittests/authopt/tests.c
259
expected->var = commasplit(val, &expected->nvar); \
crypto/openssh/regress/unittests/authopt/tests.c
260
ASSERT_PTR_NE(expected->var, NULL); \
crypto/openssh/regress/unittests/authopt/tests.c
263
expected = default_authkey_restrict_opts(); \
crypto/openssh/regress/unittests/authopt/tests.c
264
expected->var = commasplit(val, &expected->nvar); \
crypto/openssh/regress/unittests/authopt/tests.c
265
ASSERT_PTR_NE(expected->var, NULL); \
crypto/openssh/regress/unittests/authopt/tests.c
292
struct sshauthopt *opts, *expected;
crypto/openssh/regress/unittests/authopt/tests.c
296
compare_opts(opts, expected); \
crypto/openssh/regress/unittests/authopt/tests.c
297
sshauthopt_free(expected); \
crypto/openssh/regress/unittests/authopt/tests.c
305
expected = default_authkey_opts(); \
crypto/openssh/regress/unittests/authopt/tests.c
306
expected->var = 0; \
crypto/openssh/regress/unittests/authopt/tests.c
312
expected = sshauthopt_new(); \
crypto/openssh/regress/unittests/authopt/tests.c
313
ASSERT_PTR_NE(expected, NULL); \
crypto/openssh/regress/unittests/authopt/tests.c
314
expected->var = 1; \
crypto/openssh/regress/unittests/authopt/tests.c
328
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
335
expected = sshauthopt_new();
crypto/openssh/regress/unittests/authopt/tests.c
336
ASSERT_PTR_NE(expected, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
343
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
344
expected->force_command = strdup("foo");
crypto/openssh/regress/unittests/authopt/tests.c
345
ASSERT_PTR_NE(expected->force_command, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
352
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
353
expected->required_from_host_cert = strdup("127.0.0.1/32,::1/128");
crypto/openssh/regress/unittests/authopt/tests.c
354
ASSERT_PTR_NE(expected->required_from_host_cert, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
379
struct sshauthopt *key_opts, *cert_opts, *merge_opts, *expected;
crypto/openssh/regress/unittests/authopt/tests.c
388
expected = NULL; \
crypto/openssh/regress/unittests/authopt/tests.c
404
sshauthopt_free(expected); \
crypto/openssh/regress/unittests/authopt/tests.c
416
compare_opts(merge_opts, expected); \
crypto/openssh/regress/unittests/authopt/tests.c
424
expected = mostly_off ? \
crypto/openssh/regress/unittests/authopt/tests.c
426
expected->var = val; \
crypto/openssh/regress/unittests/authopt/tests.c
427
ASSERT_PTR_NE(expected, NULL); \
crypto/openssh/regress/unittests/authopt/tests.c
484
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
485
expected->required_from_host_cert = strdup("127.0.0.1/32,::1/128");
crypto/openssh/regress/unittests/authopt/tests.c
486
ASSERT_PTR_NE(expected->required_from_host_cert, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
487
expected->required_from_host_keys = strdup("127.0.0.1");
crypto/openssh/regress/unittests/authopt/tests.c
488
ASSERT_PTR_NE(expected->required_from_host_keys, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
493
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
498
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
499
expected->required_from_host_keys = strdup("127.0.0.1");
crypto/openssh/regress/unittests/authopt/tests.c
500
ASSERT_PTR_NE(expected->required_from_host_keys, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
505
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
506
expected->required_from_host_cert = strdup("127.0.0.1/32,::1/128");
crypto/openssh/regress/unittests/authopt/tests.c
507
ASSERT_PTR_NE(expected->required_from_host_cert, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
512
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
513
expected->force_command = strdup("foo");
crypto/openssh/regress/unittests/authopt/tests.c
514
ASSERT_PTR_NE(expected->force_command, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
519
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
524
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
525
expected->force_command = strdup("bar");
crypto/openssh/regress/unittests/authopt/tests.c
526
ASSERT_PTR_NE(expected->force_command, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
531
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
532
expected->force_command = strdup("foo");
crypto/openssh/regress/unittests/authopt/tests.c
533
ASSERT_PTR_NE(expected->force_command, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
543
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
544
expected->force_tun_device = 6;
crypto/openssh/regress/unittests/authopt/tests.c
550
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
551
expected->permitopen = commasplit("127.0.0.1:*,127.0.0.1:123",
crypto/openssh/regress/unittests/authopt/tests.c
552
&expected->npermitopen);
crypto/openssh/regress/unittests/authopt/tests.c
558
expected = default_authkey_opts();
crypto/openssh/regress/unittests/authopt/tests.c
559
expected->env = commasplit("foo=a,bar=b", &expected->nenv);
crypto/openssh/regress/unittests/authopt/tests.c
88
const struct sshauthopt *expected)
crypto/openssh/regress/unittests/authopt/tests.c
93
ASSERT_PTR_NE(expected, NULL);
crypto/openssh/regress/unittests/authopt/tests.c
94
ASSERT_PTR_NE(expected, opts); /* bozo :) */
crypto/openssh/regress/unittests/authopt/tests.c
96
#define FLAG_EQ(x) ASSERT_INT_EQ(opts->x, expected->x)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
113
ASSERT_LONG_LONG_EQ(l->linenum, expected->l.linenum);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
117
if (expected->l.line != NULL)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
118
ASSERT_STRING_EQ(l->line, expected->l.line);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
119
ASSERT_INT_EQ(l->marker, expected->l.marker);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
121
if (expected->l.hosts != NULL)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
122
ASSERT_STRING_EQ(l->hosts, expected->l.hosts);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
124
if (expected->l.rawkey != NULL)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
125
ASSERT_STRING_EQ(l->rawkey, expected->l.rawkey);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
129
if (expected->l.key == NULL)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
131
if (expected->l.key != NULL) {
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
133
ASSERT_INT_EQ(sshkey_equal(l->key, expected->l.key), 1);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
136
if (parse_key && l->comment != NULL && expected->l.comment != NULL)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
137
ASSERT_STRING_EQ(l->comment, expected->l.comment);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
143
prepare_expected(struct expected *expected, size_t n)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
148
if (expected[i].key_file == NULL)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
151
if (expected[i].l.keytype == KEY_ECDSA)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
155
switch (expected[i].l.keytype) {
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
162
test_data_file(expected[i].key_file), &expected[i].l.key,
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
168
cleanup_expected(struct expected *expected, size_t n)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
173
sshkey_free(expected[i].l.key);
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
174
expected[i].l.key = NULL;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
178
struct expected expected_full[] = {
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
35
const struct expected *expected;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
53
const struct expected *expected;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
64
expected = ctx->expected + ctx->i++;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
68
if (ctx->match_host_p && expected->match_host_p)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
70
if (ctx->match_host_s && expected->match_host_s)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
72
if (ctx->match_ipv4 && expected->match_ipv4)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
74
if (ctx->match_ipv6 && expected->match_ipv6)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
77
expected_status = (parse_key || expected->no_parse_status < 0) ?
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
78
expected->l.status : (u_int)expected->no_parse_status;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
783
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
79
expected_match = expected->l.match;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
794
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
805
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
81
if (ctx->x && expected->x) { \
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
817
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
82
expected_match |= expected->x; \
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
829
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
841
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
853
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
864
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
87
expected_keytype = (parse_key || expected->no_parse_keytype < 0) ?
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
875
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
88
expected->l.keytype : expected->no_parse_keytype;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
887
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
900
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
91
if (expected->l.keytype == KEY_ECDSA ||
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
912
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
92
expected->no_parse_keytype == KEY_ECDSA)
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
925
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
937
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
948
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
96
if (expected->l.keytype == KEY_RSA ||
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
961
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
97
expected->no_parse_keytype == KEY_RSA ||
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
975
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
98
expected->l.keytype == KEY_ECDSA ||
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
988
ctx.expected = expected_full;
crypto/openssh/regress/unittests/hostkeys/test_iterate.c
99
expected->no_parse_keytype == KEY_ECDSA)
crypto/openssh/regress/unittests/match/tests.c
116
int actual, expected;
crypto/openssh/regress/unittests/match/tests.c
125
expected = match_pattern_original(input, pattern);
crypto/openssh/regress/unittests/match/tests.c
128
ASSERT_INT_EQ(actual, expected);
crypto/openssh/regress/unittests/match/tests.c
301
#define CHECK_FILTER(string,filter,expected) \
crypto/openssh/regress/unittests/match/tests.c
304
ASSERT_STRING_EQ(result, expected); \
crypto/openssl/apps/include/opt.h
446
int opt_check_rest_arg(const char *expected);
crypto/openssl/apps/lib/engine_loader.c
104
static int engine_expect(OSSL_STORE_LOADER_CTX *ctx, int expected)
crypto/openssl/apps/lib/engine_loader.c
106
if (expected == 0
crypto/openssl/apps/lib/engine_loader.c
107
|| expected == OSSL_STORE_INFO_PUBKEY
crypto/openssl/apps/lib/engine_loader.c
108
|| expected == OSSL_STORE_INFO_PKEY) {
crypto/openssl/apps/lib/engine_loader.c
109
ctx->expected = expected;
crypto/openssl/apps/lib/engine_loader.c
123
if (ctx->expected == 0
crypto/openssl/apps/lib/engine_loader.c
124
|| ctx->expected == OSSL_STORE_INFO_PKEY)
crypto/openssl/apps/lib/engine_loader.c
127
if ((pkey == NULL && ctx->expected == 0)
crypto/openssl/apps/lib/engine_loader.c
128
|| ctx->expected == OSSL_STORE_INFO_PUBKEY)
crypto/openssl/apps/lib/engine_loader.c
41
int expected;
crypto/openssl/apps/lib/opt.c
1077
int opt_check_rest_arg(const char *expected)
crypto/openssl/apps/lib/opt.c
1082
if (expected == NULL)
crypto/openssl/apps/lib/opt.c
1084
opt_printf_stderr("%s: Missing argument: %s\n", prog, expected);
crypto/openssl/apps/lib/opt.c
1087
if (expected != NULL) {
crypto/openssl/apps/lib/opt.c
1091
opt_printf_stderr("%s: Extra argument after %s: \"%s\"\n", prog, expected, opt);
crypto/openssl/apps/storeutl.c
132
if (expected != 0) {
crypto/openssl/apps/storeutl.c
150
expected = map[i].type;
crypto/openssl/apps/storeutl.c
158
OPENSSL_assert(expected != 0);
crypto/openssl/apps/storeutl.c
20
int expected, int criterion, OSSL_STORE_SEARCH *search,
crypto/openssl/apps/storeutl.c
324
expected, criterion, search,
crypto/openssl/apps/storeutl.c
363
int expected, int criterion, OSSL_STORE_SEARCH *search,
crypto/openssl/apps/storeutl.c
378
if (expected != 0) {
crypto/openssl/apps/storeutl.c
379
if (!OSSL_STORE_expect(store_ctx, expected)) {
crypto/openssl/apps/storeutl.c
459
expected, criterion, search,
crypto/openssl/apps/storeutl.c
90
int expected = 0;
crypto/openssl/crypto/cmp/cmp_genm.c
118
if (OBJ_obj2nid(obj) == expected) {
crypto/openssl/crypto/cmp/cmp_genm.c
76
int expected, const char *desc)
crypto/openssl/crypto/cmp/cmp_vfy.c
659
static int check_transactionID_or_nonce(ASN1_OCTET_STRING *expected,
crypto/openssl/crypto/cmp/cmp_vfy.c
662
if (expected != NULL
crypto/openssl/crypto/cmp/cmp_vfy.c
663
&& (actual == NULL || ASN1_OCTET_STRING_cmp(expected, actual) != 0)) {
crypto/openssl/crypto/cmp/cmp_vfy.c
667
expected_str = i2s_ASN1_OCTET_STRING(NULL, expected);
crypto/openssl/engines/e_loader_attic.c
1121
static int file_expect(OSSL_STORE_LOADER_CTX *ctx, int expected)
crypto/openssl/engines/e_loader_attic.c
1123
ctx->expected_type = expected;
crypto/openssl/include/openssl/store.h
305
typedef int (*OSSL_STORE_expect_fn)(OSSL_STORE_LOADER_CTX *ctx, int expected);
crypto/openssl/providers/fips/self_test.c
248
unsigned char *expected, size_t expected_len,
crypto/openssl/providers/fips/self_test.c
290
|| memcmp(expected, out, out_len) != 0)
crypto/openssl/providers/fips/self_test_kats.c
125
|| memcmp(t->base.expected, ct_buf, ct_len) != 0)
crypto/openssl/providers/fips/self_test_kats.c
143
t->base.expected, t->base.expected_len)
crypto/openssl/providers/fips/self_test_kats.c
279
if (memcmp(out, t->expected, t->expected_len) != 0)
crypto/openssl/providers/fips/self_test_kats.c
377
if (memcmp(out, t->expected, t->expectedlen) != 0)
crypto/openssl/providers/fips/self_test_kats.c
445
|| memcmp(secret, t->expected, t->expected_len) != 0)
crypto/openssl/providers/fips/self_test_kats.c
52
|| memcmp(out, t->expected, out_len) != 0)
crypto/openssl/providers/fips/self_test_kats.c
612
const ST_KAT_PARAM *expected;
crypto/openssl/providers/fips/self_test_kats.c
634
for (expected = t->expected_params; expected->data != NULL; ++expected) {
crypto/openssl/providers/fips/self_test_kats.c
635
if (expected->type != OSSL_PARAM_OCTET_STRING
crypto/openssl/providers/fips/self_test_kats.c
636
|| !EVP_PKEY_get_octet_string_param(key, expected->name,
crypto/openssl/providers/fips/self_test_kats.c
641
if (out_len != expected->data_len
crypto/openssl/providers/fips/self_test_kats.c
642
|| memcmp(out, expected->data, expected->data_len) != 0)
crypto/openssl/providers/fips/self_test_kats.c
885
|| memcmp(out, t->expected, t->expected_len) != 0)
crypto/openssl/test/acvp_test.c
124
static int check_verify_message(EVP_PKEY_CTX *pkey_ctx, int expected)
crypto/openssl/test/acvp_test.c
138
|| !TEST_int_eq(verify_message, expected))
crypto/openssl/test/acvp_test.c
1678
static const unsigned char expected[] = {
crypto/openssl/test/acvp_test.c
1697
if (!TEST_mem_eq(out, (outlen + 7) / 8, expected, sizeof(expected)))
crypto/openssl/test/acvp_test.c
181
int expected)
crypto/openssl/test/acvp_test.c
202
expected))
crypto/openssl/test/acvp_test.c
397
t->expected))
crypto/openssl/test/acvp_test.c
407
t->expected ? "Pass" : "Fail",
crypto/openssl/test/acvp_test.c
445
int expected)
crypto/openssl/test/acvp_test.c
462
expected))
crypto/openssl/test/asn1_encode_test.c
491
const EXPECTED *expected, size_t expected_size,
crypto/openssl/test/asn1_encode_test.c
501
if (expected->success == 0) {
crypto/openssl/test/asn1_encode_test.c
509
&& memcmp(enctst, expected, expected_size) == 0)
crypto/openssl/test/asn1_encode_test.c
527
const unsigned char *expected, size_t expected_len,
crypto/openssl/test/asn1_encode_test.c
539
|| memcmp(data, expected, expected_len) != 0) {
crypto/openssl/test/asn1_encode_test.c
672
const EXPECTED *expected, size_t expected_size,
crypto/openssl/test/asn1_encode_test.c
686
ret = do_decode(encoding, encoding_length, expected, expected_size,
crypto/openssl/test/asn1_encode_test.c
698
unsigned char *expected = NULL;
crypto/openssl/test/asn1_encode_test.c
699
size_t expected_length = make_custom_der(custom_data, &expected, 0);
crypto/openssl/test/asn1_encode_test.c
705
ret = do_encode(input, expected, expected_length, package);
crypto/openssl/test/asn1_encode_test.c
706
OPENSSL_free(expected);
crypto/openssl/test/asn1_encode_test.c
745
EXPECTED *expected
crypto/openssl/test/asn1_encode_test.c
748
switch (do_encode_custom(expected, &test_custom_data[i], package)) {
crypto/openssl/test/asn1_encode_test.c
750
if (expected->success) {
crypto/openssl/test/asn1_encode_test.c
769
switch (do_decode_custom(&test_custom_data[i], expected,
crypto/openssl/test/asn1_encode_test.c
773
if (expected->success) {
crypto/openssl/test/asn1_encode_test.c
798
EXPECTED *expected
crypto/openssl/test/asn1_encode_test.c
801
switch (do_enc_dec(expected, package->encdec_data_elem_size, package)) {
crypto/openssl/test/asn1_encode_test.c
803
if (expected->success) {
crypto/openssl/test/asn1_internal_test.c
160
static int test_unicode(const unsigned char *univ, size_t len, int expected)
crypto/openssl/test/asn1_internal_test.c
168
expected))
crypto/openssl/test/asn1_time_test.c
35
time_t expected;
crypto/openssl/test/asn1_time_test.c
893
if (!TEST_time_t_eq(testdateutc, asn1_to_utc[idx].expected)) {
crypto/openssl/test/asn1_time_test.c
896
(long long int)asn1_to_utc[idx].expected,
crypto/openssl/test/bio_readbuffer_test.c
31
char expected[4096];
crypto/openssl/test/bio_readbuffer_test.c
36
|| !TEST_int_eq(BIO_read_ex(in, expected, sizeof(expected),
crypto/openssl/test/bio_readbuffer_test.c
39
|| !TEST_int_lt(readbytes, sizeof(expected)))
crypto/openssl/test/bio_readbuffer_test.c
85
if (!TEST_mem_eq(buf, bytes, expected + count, bytes))
crypto/openssl/test/bioprinttest.c
119
const char *expected;
crypto/openssl/test/bioprinttest.c
141
if (!TEST_str_eq(bio_buf, data->expected))
crypto/openssl/test/bioprinttest.c
149
const char *expected;
crypto/openssl/test/bioprinttest.c
169
if (!TEST_str_eq(bio_buf, data->expected))
crypto/openssl/test/bntest.c
130
static int equalBN(const char *op, const BIGNUM *expected, const BIGNUM *actual)
crypto/openssl/test/bntest.c
132
if (BN_cmp(expected, actual) == 0)
crypto/openssl/test/bntest.c
136
TEST_BN_eq(expected, actual);
crypto/openssl/test/bntest.c
2400
const double expected = iterations / (double)range;
crypto/openssl/test/bntest.c
2420
const double delta = counts[i] - expected;
crypto/openssl/test/bntest.c
2423
sum /= expected;
crypto/openssl/test/cmp_asn_test.c
109
fixture->expected = 1;
crypto/openssl/test/cmp_asn_test.c
18
int expected;
crypto/openssl/test/cmp_asn_test.c
74
fixture->expected = 1;
crypto/openssl/test/cmp_asn_test.c
82
if (!TEST_int_eq(fixture->expected,
crypto/openssl/test/cmp_asn_test.c
86
if (fixture->expected != 0)
crypto/openssl/test/cmp_asn_test.c
94
fixture->expected = 1;
crypto/openssl/test/cmp_client_test.c
120
fixt->expected == OSSL_CMP_PKISTATUS_accepted)
crypto/openssl/test/cmp_client_test.c
121
&& TEST_int_eq(OSSL_CMP_CTX_get_status(fixt->cmp_ctx), fixt->expected);
crypto/openssl/test/cmp_client_test.c
135
return TEST_int_eq(OSSL_CMP_CTX_get_status(ctx), fixture->expected)
crypto/openssl/test/cmp_client_test.c
136
&& fixture->expected == OSSL_CMP_PKISTATUS_accepted
crypto/openssl/test/cmp_client_test.c
155
if (!TEST_int_eq(status, fixture->expected))
crypto/openssl/test/cmp_client_test.c
157
if (fixture->expected != OSSL_CMP_PKISTATUS_accepted)
crypto/openssl/test/cmp_client_test.c
177
fixture->expected = request_error ? OSSL_CMP_PKISTATUS_request
crypto/openssl/test/cmp_client_test.c
201
fixture->expected = OSSL_CMP_PKISTATUS_rejection;
crypto/openssl/test/cmp_client_test.c
210
fixture->expected = OSSL_CMP_PKISTATUS_accepted;
crypto/openssl/test/cmp_client_test.c
228
fixture->expected = expect;
crypto/openssl/test/cmp_client_test.c
27
int expected;
crypto/openssl/test/cmp_client_test.c
273
fixture->expected = reject ? OSSL_CMP_PKISTATUS_rejection
crypto/openssl/test/cmp_client_test.c
315
fixture->expected = transfer_error ? OSSL_CMP_PKISTATUS_trans : raverified ? (pubkey ? OSSL_CMP_PKISTATUS_rejected_by_client : OSSL_CMP_PKISTATUS_rejection)
crypto/openssl/test/cmp_client_test.c
375
fixture->expected = reject ? OSSL_CMP_PKISTATUS_rejected_by_client
crypto/openssl/test/cmp_client_test.c
415
&& TEST_int_eq(fixture->expected,
crypto/openssl/test/cmp_client_test.c
424
fixture->expected = 1;
crypto/openssl/test/cmp_client_test.c
441
&& TEST_int_eq(fixture->expected,
crypto/openssl/test/cmp_client_test.c
449
fixture->expected = 1;
crypto/openssl/test/cmp_client_test.c
484
fixture->expected = expect;
crypto/openssl/test/cmp_client_test.c
510
return TEST_int_eq(fixture->expected, res);
crypto/openssl/test/cmp_client_test.c
520
return TEST_int_eq(fixture->expected, res);
crypto/openssl/test/cmp_client_test.c
526
fixture->expected = 0; /* client should not send certConf immediately */
crypto/openssl/test/cmp_client_test.c
538
fixture->expected = 1; /* client may send error any time */
crypto/openssl/test/cmp_hdr_test.c
103
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
138
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
173
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
18
int expected;
crypto/openssl/test/cmp_hdr_test.c
211
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
243
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
274
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
308
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
334
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
393
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
419
if (!TEST_int_eq(fixture->expected,
crypto/openssl/test/cmp_hdr_test.c
422
if (fixture->expected == 0)
crypto/openssl/test/cmp_hdr_test.c
453
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
469
fixture->expected = 1;
crypto/openssl/test/cmp_hdr_test.c
63
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
148
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
166
fixture->expected = 0;
crypto/openssl/test/cmp_msg_test.c
183
fixture->expected = 0;
crypto/openssl/test/cmp_msg_test.c
193
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
207
fixture->expected = 0;
crypto/openssl/test/cmp_msg_test.c
225
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
242
fixture->expected = 0;
crypto/openssl/test/cmp_msg_test.c
256
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
271
fixture->expected = 0;
crypto/openssl/test/cmp_msg_test.c
28
int expected;
crypto/openssl/test/cmp_msg_test.c
284
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
298
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
312
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
329
fixture->expected = 1; /* expected: message creation is successful */
crypto/openssl/test/cmp_msg_test.c
341
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
349
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
363
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
495
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
518
fixture->expected = 1;
crypto/openssl/test/cmp_msg_test.c
521
fixture->expected = 0;
crypto/openssl/test/cmp_msg_test.c
72
int good = fixture->expected != 0 ? TEST_ptr(msg = (expr)) && TEST_true(valid_asn1_encoding(msg)) : TEST_ptr_null(msg = (expr)); \
crypto/openssl/test/cmp_protect_test.c
190
return TEST_int_eq(fixture->expected,
crypto/openssl/test/cmp_protect_test.c
200
fixture->expected = 1;
crypto/openssl/test/cmp_protect_test.c
215
fixture->expected = 1;
crypto/openssl/test/cmp_protect_test.c
238
fixture->expected = 1;
crypto/openssl/test/cmp_protect_test.c
258
fixture->expected = 0;
crypto/openssl/test/cmp_protect_test.c
273
fixture->expected = 0;
crypto/openssl/test/cmp_protect_test.c
289
fixture->expected = with_ref;
crypto/openssl/test/cmp_protect_test.c
33
int expected;
crypto/openssl/test/cmp_protect_test.c
356
ret = TEST_int_eq(fixture->expected, chain != NULL);
crypto/openssl/test/cmp_protect_test.c
370
fixture->expected = 1;
crypto/openssl/test/cmp_protect_test.c
396
fixture->expected = 0;
crypto/openssl/test/cmp_protect_test.c
414
fixture->expected = 1;
crypto/openssl/test/cmp_protect_test.c
433
fixture->expected = 1;
crypto/openssl/test/cmp_protect_test.c
450
fixture->expected = 0;
crypto/openssl/test/cmp_server_test.c
117
fixture->expected = 1;
crypto/openssl/test/cmp_server_test.c
16
int expected;
crypto/openssl/test/cmp_vfy_test.c
104
if (fixture->expected == 0) {
crypto/openssl/test/cmp_vfy_test.c
111
return TEST_int_eq(fixture->expected,
crypto/openssl/test/cmp_vfy_test.c
119
fixture->expected = 1;
crypto/openssl/test/cmp_vfy_test.c
128
fixture->expected = 0;
crypto/openssl/test/cmp_vfy_test.c
137
int res = TEST_int_eq(fixture->expected,
crypto/openssl/test/cmp_vfy_test.c
142
return res && (!fixture->expected || TEST_ptr_eq(validated, fixture->cert));
crypto/openssl/test/cmp_vfy_test.c
148
int res = TEST_int_eq(fixture->expected,
crypto/openssl/test/cmp_vfy_test.c
161
fixture->expected = !miss && !wrong;
crypto/openssl/test/cmp_vfy_test.c
198
fixture->expected = 0;
crypto/openssl/test/cmp_vfy_test.c
230
fixture->expected = !expired;
crypto/openssl/test/cmp_vfy_test.c
263
fixture->expected = !bad_sig && !wrong && !miss;
crypto/openssl/test/cmp_vfy_test.c
305
fixture->expected = 1;
crypto/openssl/test/cmp_vfy_test.c
32
int expected;
crypto/openssl/test/cmp_vfy_test.c
320
fixture->expected = 1;
crypto/openssl/test/cmp_vfy_test.c
334
fixture->expected = 1;
crypto/openssl/test/cmp_vfy_test.c
350
fixture->expected = 0;
crypto/openssl/test/cmp_vfy_test.c
360
static int test_validate_with_sender(const X509_NAME *name, int expected)
crypto/openssl/test/cmp_vfy_test.c
364
fixture->expected = expected;
crypto/openssl/test/cmp_vfy_test.c
389
fixture->expected = 0;
crypto/openssl/test/cmp_vfy_test.c
402
(*fixture)->expected = wrong == NULL && !expired;
crypto/openssl/test/cmp_vfy_test.c
446
if (!TEST_int_eq(fixture->expected,
crypto/openssl/test/cmp_vfy_test.c
453
if (fixture->expected == 0) /* error expected already during above check */
crypto/openssl/test/cmp_vfy_test.c
469
static void setup_check_update(CMP_VFY_TEST_FIXTURE **fixture, int expected,
crypto/openssl/test/cmp_vfy_test.c
477
(*fixture)->expected = expected;
crypto/openssl/test/errtest.c
106
|| !TEST_strn_eq(expected, p, strlen(expected)))
crypto/openssl/test/errtest.c
52
char expected[512];
crypto/openssl/test/errtest.c
90
BIO_snprintf(expected, sizeof(expected), expected_format,
crypto/openssl/test/evp_extra_test.c
2103
unsigned char expected[8] = {
crypto/openssl/test/evp_extra_test.c
2138
if (!TEST_mem_eq(digest, len, expected, sizeof(expected)))
crypto/openssl/test/evp_extra_test.c
3496
const unsigned char expected[] = {
crypto/openssl/test/evp_extra_test.c
3500
size_t expectedlen = sizeof(expected);
crypto/openssl/test/evp_extra_test.c
3522
|| !TEST_mem_eq(out, outlen, expected, expectedlen))
crypto/openssl/test/evp_extra_test.c
3543
const unsigned char expected[] = {
crypto/openssl/test/evp_extra_test.c
3547
size_t expectedlen = sizeof(expected);
crypto/openssl/test/evp_extra_test.c
3567
|| !TEST_mem_eq(out, outlen, expected, expectedlen))
crypto/openssl/test/evp_extra_test.c
3588
const unsigned char expected[] = {
crypto/openssl/test/evp_extra_test.c
3592
size_t expectedlen = sizeof(expected);
crypto/openssl/test/evp_extra_test.c
3615
|| !TEST_mem_eq(out, outlen, expected, expectedlen))
crypto/openssl/test/evp_extra_test.c
4962
const unsigned char *expected;
crypto/openssl/test/evp_extra_test.c
5102
if (!TEST_mem_eq(t->expected, t->expectedlen, outbuf, outlen1 + outlen2)) {
crypto/openssl/test/evp_extra_test.c
5147
|| !TEST_mem_eq(t->expected, t->expectedlen, outbuf1, outlen1 + outlen_final)
crypto/openssl/test/evp_extra_test.c
5154
|| !TEST_mem_eq(t->expected, t->expectedlen, outbuf2, outlen2 + outlen_final))
crypto/openssl/test/evp_extra_test.c
5165
const unsigned char *expected;
crypto/openssl/test/evp_extra_test.c
5216
if (!TEST_mem_eq(t->expected, t->expectedlen, outbuf, outlen1 + outlen2)) {
crypto/openssl/test/evp_extra_test.c
5232
if (!TEST_mem_eq(t->expected, t->expectedlen, outbuf, outlen1 + outlen2)) {
crypto/openssl/test/evp_extra_test2.c
1073
static int do_check_params(OSSL_PARAM key_params[], int expected)
crypto/openssl/test/evp_extra_test2.c
1086
&& TEST_int_eq(EVP_PKEY_param_check(check_ctx), expected);
crypto/openssl/test/evp_extra_test2.c
1094
const unsigned char *expected, size_t expected_len)
crypto/openssl/test/evp_extra_test2.c
1104
&& TEST_mem_eq(expected, expected_len, buffer, len);
crypto/openssl/test/evp_extra_test2.c
1109
static int do_check_int(OSSL_PARAM params[], const char *key, int expected)
crypto/openssl/test/evp_extra_test2.c
1116
&& TEST_int_eq(val, expected);
crypto/openssl/test/evp_extra_test2.c
1224
int expected = (tstid == 0 ? 0 : 1);
crypto/openssl/test/evp_extra_test2.c
1241
|| !TEST_int_eq(EVP_PKEY_paramgen(gctx, &pkey2), expected))
crypto/openssl/test/evp_extra_test2.c
890
const EVP_PKEY *expected, const char *type)
crypto/openssl/test/evp_extra_test2.c
902
&& TEST_true(EVP_PKEY_eq(pkey, expected));
crypto/openssl/test/evp_kdf_test.c
1603
static const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
1621
&& TEST_mem_eq(out, sizeof(out), expected, sizeof(expected));
crypto/openssl/test/evp_kdf_test.c
1644
static const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
1672
&& TEST_mem_eq(out, sizeof(out), expected, sizeof(expected));
crypto/openssl/test/evp_kdf_test.c
1710
static const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
1728
&& TEST_mem_eq(out, sizeof(out), expected, sizeof(expected));
crypto/openssl/test/evp_kdf_test.c
1798
static const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
1814
&& TEST_mem_eq(out, sizeof(out), expected, sizeof(expected));
crypto/openssl/test/evp_kdf_test.c
1834
static const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
1849
&& TEST_mem_eq(out, sizeof(out), expected, sizeof(expected));
crypto/openssl/test/evp_kdf_test.c
225
static const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
234
&& TEST_mem_eq(out, sizeof(out), expected, sizeof(expected));
crypto/openssl/test/evp_kdf_test.c
506
const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
533
|| !TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)))
crypto/openssl/test/evp_kdf_test.c
625
const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
639
|| !TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)))
crypto/openssl/test/evp_kdf_test.c
64
static const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
74
&& TEST_mem_eq(out, sizeof(out), expected, sizeof(expected));
crypto/openssl/test/evp_kdf_test.c
864
static const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
896
&& TEST_mem_eq(out, sizeof(out), expected, sizeof(expected));
crypto/openssl/test/evp_kdf_test.c
924
static const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
937
&& TEST_mem_eq(out, sizeof(out), expected, sizeof(expected));
crypto/openssl/test/evp_kdf_test.c
966
static const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/evp_kdf_test.c
989
&& TEST_mem_eq(out, sizeof(out), expected, sizeof(expected));
crypto/openssl/test/evp_libctx_test.c
117
int expected;
crypto/openssl/test/evp_libctx_test.c
142
expected = (pind == 0 && qind == 1 && gind == 2);
crypto/openssl/test/evp_libctx_test.c
162
|| !TEST_int_eq(EVP_PKEY_keygen(gen_ctx, &pkey), expected))
crypto/openssl/test/evp_libctx_test.c
165
if (expected) {
crypto/openssl/test/evp_libctx_test.c
189
int expected;
crypto/openssl/test/evp_libctx_test.c
205
expected = (pind == 0 && qind == 1 && gind == 2);
crypto/openssl/test/evp_libctx_test.c
225
|| !TEST_int_eq(EVP_PKEY_keygen(gen_ctx, &pkey), expected))
crypto/openssl/test/evp_libctx_test.c
228
if (expected) {
crypto/openssl/test/evp_pkey_dhkem_test.c
408
int expected = (keytype == TEST_KEYTYPE_X25519);
crypto/openssl/test/evp_pkey_dhkem_test.c
418
if (!TEST_int_eq(EVP_PKEY_encapsulate_init(ctx, opparam), expected))
crypto/openssl/test/evp_pkey_dhkem_test.c
421
if (!TEST_int_eq(EVP_PKEY_decapsulate_init(ctx, opparam), expected))
crypto/openssl/test/evp_pkey_dhkem_test.c
424
if (expected == 0
crypto/openssl/test/evp_pkey_dhkem_test.c
443
int expected = (keytype == TEST_KEYTYPE_X25519);
crypto/openssl/test/evp_pkey_dhkem_test.c
447
t->rprivlen, NULL, expected)))
crypto/openssl/test/evp_pkey_dhkem_test.c
453
expected))
crypto/openssl/test/evp_pkey_dhkem_test.c
458
expected))
crypto/openssl/test/evp_pkey_dhkem_test.c
461
if (expected == 0
crypto/openssl/test/evp_test.c
1090
CIPHER_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
1105
in = expected->plaintext;
crypto/openssl/test/evp_test.c
1106
in_len = expected->plaintext_len;
crypto/openssl/test/evp_test.c
1107
expected_out = expected->ciphertext;
crypto/openssl/test/evp_test.c
1108
out_len = expected->ciphertext_len;
crypto/openssl/test/evp_test.c
1110
in = expected->ciphertext;
crypto/openssl/test/evp_test.c
1111
in_len = expected->ciphertext_len;
crypto/openssl/test/evp_test.c
1112
expected_out = expected->plaintext;
crypto/openssl/test/evp_test.c
1113
out_len = expected->plaintext_len;
crypto/openssl/test/evp_test.c
1136
if (!EVP_CipherInit_ex2(ctx_base, expected->cipher, NULL, NULL, enc,
crypto/openssl/test/evp_test.c
1141
if (expected->cts_mode != NULL) {
crypto/openssl/test/evp_test.c
1145
(char *)expected->cts_mode,
crypto/openssl/test/evp_test.c
1153
if (expected->iv) {
crypto/openssl/test/evp_test.c
1154
if (expected->aead) {
crypto/openssl/test/evp_test.c
1156
expected->iv_len, 0)
crypto/openssl/test/evp_test.c
1161
} else if (expected->iv_len != (size_t)EVP_CIPHER_CTX_get_iv_length(ctx_base)) {
crypto/openssl/test/evp_test.c
1166
if (expected->aead && !expected->tls_aad) {
crypto/openssl/test/evp_test.c
1172
if (enc || expected->aead == EVP_CIPH_OCB_MODE || expected->tag_late) {
crypto/openssl/test/evp_test.c
1177
tag = expected->tag;
crypto/openssl/test/evp_test.c
1179
if (tag || expected->aead != EVP_CIPH_GCM_MODE) {
crypto/openssl/test/evp_test.c
1181
expected->tag_len, tag)
crypto/openssl/test/evp_test.c
1187
if (expected->rounds > 0) {
crypto/openssl/test/evp_test.c
1188
int rounds = (int)expected->rounds;
crypto/openssl/test/evp_test.c
1196
if (!EVP_CIPHER_CTX_set_key_length(ctx_base, expected->key_len)) {
crypto/openssl/test/evp_test.c
1200
if (expected->key_bits > 0) {
crypto/openssl/test/evp_test.c
1201
int bits = (int)expected->key_bits;
crypto/openssl/test/evp_test.c
1208
if (!EVP_CipherInit_ex(ctx_base, NULL, NULL, expected->key, expected->iv, -1)) {
crypto/openssl/test/evp_test.c
1214
if (expected->iv != NULL) {
crypto/openssl/test/evp_test.c
1218
|| ((EVP_CIPHER_get_flags(expected->cipher) & EVP_CIPH_CUSTOM_IV) == 0
crypto/openssl/test/evp_test.c
1219
&& !TEST_mem_eq(expected->iv, expected->iv_len, iv,
crypto/openssl/test/evp_test.c
1220
expected->iv_len))) {
crypto/openssl/test/evp_test.c
1231
EVP_CIPHER_get0_name(expected->cipher));
crypto/openssl/test/evp_test.c
1251
EVP_CIPHER_get0_name(expected->cipher));
crypto/openssl/test/evp_test.c
1260
if (expected->mac_key != NULL
crypto/openssl/test/evp_test.c
1262
(int)expected->mac_key_len,
crypto/openssl/test/evp_test.c
1263
(void *)expected->mac_key)
crypto/openssl/test/evp_test.c
1269
if (expected->tls_version) {
crypto/openssl/test/evp_test.c
1273
&expected->tls_version);
crypto/openssl/test/evp_test.c
1281
if (expected->aead == EVP_CIPH_CCM_MODE) {
crypto/openssl/test/evp_test.c
1287
if (expected->aad[0] != NULL && !expected->tls_aad) {
crypto/openssl/test/evp_test.c
1291
for (i = 0; expected->aad[i] != NULL; i++) {
crypto/openssl/test/evp_test.c
1292
size_t aad_len = expected->aad_len[i];
crypto/openssl/test/evp_test.c
1301
expected->aad[i] + donelen,
crypto/openssl/test/evp_test.c
1310
for (i = 0; expected->aad[i] != NULL; i++) {
crypto/openssl/test/evp_test.c
1311
if (expected->aad_len[i] > 0) {
crypto/openssl/test/evp_test.c
1312
if (!EVP_CipherUpdate(ctx, NULL, &chunklen, expected->aad[i], 1))
crypto/openssl/test/evp_test.c
1316
if (expected->aad_len[i] > 2) {
crypto/openssl/test/evp_test.c
1318
expected->aad[i] + donelen,
crypto/openssl/test/evp_test.c
1319
expected->aad_len[i] - 2))
crypto/openssl/test/evp_test.c
1321
donelen += expected->aad_len[i] - 2;
crypto/openssl/test/evp_test.c
1323
if (expected->aad_len[i] > 1
crypto/openssl/test/evp_test.c
1325
expected->aad[i] + donelen, 1))
crypto/openssl/test/evp_test.c
1331
if (expected->tls_aad) {
crypto/openssl/test/evp_test.c
1336
if ((tls_aad = OPENSSL_memdup(expected->aad[0],
crypto/openssl/test/evp_test.c
1337
expected->aad_len[0]))
crypto/openssl/test/evp_test.c
1342
expected->aad_len[0]);
crypto/openssl/test/evp_test.c
1350
} else if (!enc && (expected->aead == EVP_CIPH_OCB_MODE || expected->tag_late)) {
crypto/openssl/test/evp_test.c
1352
expected->tag_len, expected->tag)
crypto/openssl/test/evp_test.c
1358
if (expected->xts_standard != NULL) {
crypto/openssl/test/evp_test.c
1362
(char *)expected->xts_standard, 0);
crypto/openssl/test/evp_test.c
1419
if (!enc && expected->tls_aad) {
crypto/openssl/test/evp_test.c
1420
if (expected->tls_version >= TLS1_1_VERSION
crypto/openssl/test/evp_test.c
1421
&& (EVP_CIPHER_is_a(expected->cipher, "AES-128-CBC-HMAC-SHA1")
crypto/openssl/test/evp_test.c
1422
|| EVP_CIPHER_is_a(expected->cipher, "AES-256-CBC-HMAC-SHA1"))) {
crypto/openssl/test/evp_test.c
1423
tmplen -= expected->iv_len;
crypto/openssl/test/evp_test.c
1424
expected_out += expected->iv_len;
crypto/openssl/test/evp_test.c
1425
out_misalign += expected->iv_len;
crypto/openssl/test/evp_test.c
1433
if (enc && expected->aead && !expected->tls_aad) {
crypto/openssl/test/evp_test.c
1436
if (!TEST_size_t_le(expected->tag_len, sizeof(rtag))) {
crypto/openssl/test/evp_test.c
1441
expected->tag_len, rtag)
crypto/openssl/test/evp_test.c
1447
expected->tag, expected->tag_len,
crypto/openssl/test/evp_test.c
1448
rtag, expected->tag_len))
crypto/openssl/test/evp_test.c
1452
if (expected->next_iv != NULL) {
crypto/openssl/test/evp_test.c
1456
|| ((EVP_CIPHER_get_flags(expected->cipher) & EVP_CIPH_CUSTOM_IV) == 0
crypto/openssl/test/evp_test.c
1457
&& !TEST_mem_eq(expected->next_iv, expected->iv_len, iv,
crypto/openssl/test/evp_test.c
1458
expected->iv_len))) {
crypto/openssl/test/evp_test.c
1748
MAC_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
1760
if (expected->xof)
crypto/openssl/test/evp_test.c
1763
if (expected->alg == NULL)
crypto/openssl/test/evp_test.c
1764
TEST_info("Trying the EVP_PKEY %s test", OBJ_nid2sn(expected->type));
crypto/openssl/test/evp_test.c
1767
OBJ_nid2sn(expected->type), expected->alg);
crypto/openssl/test/evp_test.c
1769
if (expected->type == EVP_PKEY_CMAC) {
crypto/openssl/test/evp_test.c
1771
TEST_info("skipping, PKEY CMAC '%s' is disabled", expected->alg);
crypto/openssl/test/evp_test.c
1778
if (expected->alg != NULL && is_cipher_disabled(expected->alg)) {
crypto/openssl/test/evp_test.c
1779
TEST_info("skipping, PKEY CMAC '%s' is disabled", expected->alg);
crypto/openssl/test/evp_test.c
1784
if (!TEST_ptr(cipher = EVP_CIPHER_fetch(libctx, expected->alg, propquery))) {
crypto/openssl/test/evp_test.c
1789
key = EVP_PKEY_new_CMAC_key(NULL, expected->key, expected->key_len,
crypto/openssl/test/evp_test.c
1795
OBJ_nid2sn(expected->type), NULL,
crypto/openssl/test/evp_test.c
1796
expected->key, expected->key_len);
crypto/openssl/test/evp_test.c
1803
if (expected->type == EVP_PKEY_HMAC && expected->alg != NULL) {
crypto/openssl/test/evp_test.c
1804
if (is_digest_disabled(expected->alg)) {
crypto/openssl/test/evp_test.c
1805
TEST_info("skipping, HMAC '%s' is disabled", expected->alg);
crypto/openssl/test/evp_test.c
1810
mdname = expected->alg;
crypto/openssl/test/evp_test.c
1820
for (i = 0; i < sk_OPENSSL_STRING_num(expected->controls); i++)
crypto/openssl/test/evp_test.c
1822
sk_OPENSSL_STRING_value(expected->controls,
crypto/openssl/test/evp_test.c
1827
input_len = expected->input_len;
crypto/openssl/test/evp_test.c
1834
if (!EVP_DigestSignUpdate(mctx, expected->input + donelen, current_len)) {
crypto/openssl/test/evp_test.c
1852
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
1869
MAC_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
1878
const OSSL_PARAM *defined_params = EVP_MAC_settable_ctx_params(expected->mac);
crypto/openssl/test/evp_test.c
1883
if (expected->alg == NULL)
crypto/openssl/test/evp_test.c
1884
TEST_info("Trying the EVP_MAC %s test", expected->mac_name);
crypto/openssl/test/evp_test.c
1887
expected->mac_name, expected->alg);
crypto/openssl/test/evp_test.c
1889
if (expected->alg != NULL) {
crypto/openssl/test/evp_test.c
1900
if (is_cipher_disabled(expected->alg))
crypto/openssl/test/evp_test.c
1904
expected->alg, 0);
crypto/openssl/test/evp_test.c
1908
if (is_digest_disabled(expected->alg))
crypto/openssl/test/evp_test.c
1912
expected->alg, 0);
crypto/openssl/test/evp_test.c
1918
TEST_info("skipping, algorithm '%s' is disabled", expected->alg);
crypto/openssl/test/evp_test.c
1924
if (expected->custom != NULL)
crypto/openssl/test/evp_test.c
1926
expected->custom,
crypto/openssl/test/evp_test.c
1927
expected->custom_len);
crypto/openssl/test/evp_test.c
1928
if (expected->salt != NULL)
crypto/openssl/test/evp_test.c
1930
expected->salt,
crypto/openssl/test/evp_test.c
1931
expected->salt_len);
crypto/openssl/test/evp_test.c
1932
if (expected->iv != NULL)
crypto/openssl/test/evp_test.c
1934
expected->iv,
crypto/openssl/test/evp_test.c
1935
expected->iv_len);
crypto/openssl/test/evp_test.c
1938
if (!ctrl2params(t, expected->controls, defined_params,
crypto/openssl/test/evp_test.c
1948
if ((ctx = EVP_MAC_CTX_new(expected->mac)) == NULL) {
crypto/openssl/test/evp_test.c
1958
if (!EVP_MAC_init(ctx, expected->key, expected->key_len, params)) {
crypto/openssl/test/evp_test.c
1979
if (expected->output_size >= 0)
crypto/openssl/test/evp_test.c
1982
if (expected->block_size >= 0)
crypto/openssl/test/evp_test.c
1991
if (expected->output_size >= 0
crypto/openssl/test/evp_test.c
1992
&& !TEST_int_eq(output_size, expected->output_size)) {
crypto/openssl/test/evp_test.c
1996
if (expected->block_size >= 0
crypto/openssl/test/evp_test.c
1997
&& !TEST_int_eq(block_size, expected->block_size)) {
crypto/openssl/test/evp_test.c
2003
input_len = expected->input_len;
crypto/openssl/test/evp_test.c
2010
if (!EVP_MAC_update(ctx, expected->input + donelen, current_len)) {
crypto/openssl/test/evp_test.c
2018
xof = expected->xof;
crypto/openssl/test/evp_test.c
2020
if (!TEST_ptr(got = OPENSSL_malloc(expected->output_len))) {
crypto/openssl/test/evp_test.c
2024
if (!EVP_MAC_finalXOF(ctx, got, expected->output_len)
crypto/openssl/test/evp_test.c
2026
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
2027
got, expected->output_len)) {
crypto/openssl/test/evp_test.c
2042
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
2056
if (expected->iv != NULL) {
crypto/openssl/test/evp_test.c
2058
expected->iv,
crypto/openssl/test/evp_test.c
2059
expected->iv_len);
crypto/openssl/test/evp_test.c
2064
if (expected->no_reinit) {
crypto/openssl/test/evp_test.c
2088
if (!TEST_true(EVP_Q_mac(libctx, expected->mac_name, NULL,
crypto/openssl/test/evp_test.c
2089
expected->alg, params,
crypto/openssl/test/evp_test.c
2090
expected->key, expected->key_len,
crypto/openssl/test/evp_test.c
2091
expected->input, expected->input_len,
crypto/openssl/test/evp_test.c
2094
expected->output, expected->output_len)) {
crypto/openssl/test/evp_test.c
2108
MAC_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
2110
if (expected->mac != NULL)
crypto/openssl/test/evp_test.c
2303
const unsigned char *expected, size_t expectedlen)
crypto/openssl/test/evp_test.c
2342
if (!TEST_mem_eq(out, outlen, expected, expectedlen)) {
crypto/openssl/test/evp_test.c
2690
PKEY_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
2699
if (!TEST_ptr(copy = EVP_PKEY_CTX_dup(expected->ctx))) {
crypto/openssl/test/evp_test.c
2704
if (expected->keyop(expected->ctx, NULL, &got_len,
crypto/openssl/test/evp_test.c
2705
expected->input, expected->input_len)
crypto/openssl/test/evp_test.c
2711
if (expected->keyop(expected->ctx, got, &got_len,
crypto/openssl/test/evp_test.c
2712
expected->input, expected->input_len)
crypto/openssl/test/evp_test.c
2719
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
2728
if (expected->keyop(copy, NULL, &got_len, expected->input,
crypto/openssl/test/evp_test.c
2729
expected->input_len)
crypto/openssl/test/evp_test.c
2735
if (expected->keyop(copy, got, &got_len, expected->input,
crypto/openssl/test/evp_test.c
2736
expected->input_len)
crypto/openssl/test/evp_test.c
2742
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
2746
if (pkey_check_fips_approved(expected->ctx, t) <= 0)
crypto/openssl/test/evp_test.c
3031
PKEY_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
3040
if (EVP_PKEY_derive_set_peer_ex(expected->ctx, expected->peer,
crypto/openssl/test/evp_test.c
3041
expected->validate)
crypto/openssl/test/evp_test.c
3047
if (!TEST_ptr(dctx = EVP_PKEY_CTX_dup(expected->ctx))) {
crypto/openssl/test/evp_test.c
3066
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
3255
PBE_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
3262
if (!TEST_ptr(key = OPENSSL_malloc(expected->key_len))) {
crypto/openssl/test/evp_test.c
3266
if (expected->pbe_type == PBE_TYPE_PBKDF2) {
crypto/openssl/test/evp_test.c
3267
if (PKCS5_PBKDF2_HMAC((char *)expected->pass, expected->pass_len,
crypto/openssl/test/evp_test.c
3268
expected->salt, expected->salt_len,
crypto/openssl/test/evp_test.c
3269
expected->iter, expected->md,
crypto/openssl/test/evp_test.c
327
const void *expected, size_t expected_len,
crypto/openssl/test/evp_test.c
3270
expected->key_len, key)
crypto/openssl/test/evp_test.c
3276
} else if (expected->pbe_type == PBE_TYPE_SCRYPT) {
crypto/openssl/test/evp_test.c
3277
if (EVP_PBE_scrypt((const char *)expected->pass, expected->pass_len,
crypto/openssl/test/evp_test.c
3278
expected->salt, expected->salt_len,
crypto/openssl/test/evp_test.c
3279
expected->N, expected->r, expected->p,
crypto/openssl/test/evp_test.c
3280
expected->maxmem, key, expected->key_len)
crypto/openssl/test/evp_test.c
3286
} else if (expected->pbe_type == PBE_TYPE_PKCS12) {
crypto/openssl/test/evp_test.c
3287
fetched_digest = EVP_MD_fetch(libctx, EVP_MD_get0_name(expected->md),
crypto/openssl/test/evp_test.c
3293
if (PKCS12_key_gen_uni(expected->pass, expected->pass_len,
crypto/openssl/test/evp_test.c
3294
expected->salt, expected->salt_len,
crypto/openssl/test/evp_test.c
3295
expected->id, expected->iter, expected->key_len,
crypto/openssl/test/evp_test.c
3302
if (!memory_err_compare(t, "KEY_MISMATCH", expected->key, expected->key_len,
crypto/openssl/test/evp_test.c
3303
key, expected->key_len))
crypto/openssl/test/evp_test.c
333
r = !TEST_mem_ne(expected, expected_len, got, got_len);
crypto/openssl/test/evp_test.c
335
r = TEST_mem_eq(expected, expected_len, got, got_len);
crypto/openssl/test/evp_test.c
3392
ENCODE_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
3403
if (expected->encoding == BASE64_CANONICAL_ENCODING) {
crypto/openssl/test/evp_test.c
3406
|| !TEST_ptr(encode_out = OPENSSL_malloc(EVP_ENCODE_LENGTH(expected->input_len))))
crypto/openssl/test/evp_test.c
3411
input_len = expected->input_len;
crypto/openssl/test/evp_test.c
3420
expected->input + donelen,
crypto/openssl/test/evp_test.c
3432
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
3437
decode_length = EVP_DECODE_LENGTH(expected->output_len);
crypto/openssl/test/evp_test.c
3449
input_len = expected->output_len;
crypto/openssl/test/evp_test.c
3457
expected->output + donelen, current_len)
crypto/openssl/test/evp_test.c
3473
if (expected->encoding != BASE64_INVALID_ENCODING
crypto/openssl/test/evp_test.c
3475
expected->input, expected->input_len,
crypto/openssl/test/evp_test.c
3672
RAND_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
3675
size_t got_len = expected->generate_bits / 8;
crypto/openssl/test/evp_test.c
3685
if (sk_OPENSSL_STRING_num(expected->init_controls) > 0) {
crypto/openssl/test/evp_test.c
3686
if (!ctrl2params(t, expected->init_controls,
crypto/openssl/test/evp_test.c
3693
*p++ = OSSL_PARAM_construct_int(OSSL_DRBG_PARAM_USE_DF, &expected->use_df);
crypto/openssl/test/evp_test.c
3694
if (expected->cipher != NULL)
crypto/openssl/test/evp_test.c
3696
expected->cipher, 0);
crypto/openssl/test/evp_test.c
3697
if (expected->digest != NULL)
crypto/openssl/test/evp_test.c
3699
expected->digest, 0);
crypto/openssl/test/evp_test.c
3702
if (!EVP_RAND_CTX_set_params(expected->ctx, params)) {
crypto/openssl/test/evp_test.c
3712
strength = EVP_RAND_get_strength(expected->ctx);
crypto/openssl/test/evp_test.c
3713
for (i = 0; i <= expected->n; i++) {
crypto/openssl/test/evp_test.c
3714
item = expected->data + i;
crypto/openssl/test/evp_test.c
3724
if (!TEST_true(EVP_RAND_instantiate(expected->parent, strength,
crypto/openssl/test/evp_test.c
3729
if (!TEST_true(EVP_RAND_instantiate(expected->ctx, strength,
crypto/openssl/test/evp_test.c
3730
expected->prediction_resistance, z,
crypto/openssl/test/evp_test.c
3738
if (!TEST_true(EVP_RAND_CTX_set_params(expected->parent, params)))
crypto/openssl/test/evp_test.c
3741
if (!TEST_true(EVP_RAND_reseed(expected->ctx, expected->prediction_resistance,
crypto/openssl/test/evp_test.c
3750
if (!TEST_true(EVP_RAND_CTX_set_params(expected->parent, params)))
crypto/openssl/test/evp_test.c
3753
if (!TEST_true(EVP_RAND_generate(expected->ctx, got, got_len,
crypto/openssl/test/evp_test.c
3754
strength, expected->prediction_resistance,
crypto/openssl/test/evp_test.c
3762
if (!TEST_true(EVP_RAND_CTX_set_params(expected->parent, params)))
crypto/openssl/test/evp_test.c
3765
if (!TEST_true(EVP_RAND_generate(expected->ctx, got, got_len,
crypto/openssl/test/evp_test.c
3766
strength, expected->prediction_resistance,
crypto/openssl/test/evp_test.c
3771
if (!rand_check_fips_approved(expected->ctx, t))
crypto/openssl/test/evp_test.c
3773
if (!TEST_true(EVP_RAND_uninstantiate(expected->ctx))
crypto/openssl/test/evp_test.c
3774
|| !TEST_true(EVP_RAND_uninstantiate(expected->parent))
crypto/openssl/test/evp_test.c
3775
|| !TEST_true(EVP_RAND_verify_zeroization(expected->ctx))
crypto/openssl/test/evp_test.c
3776
|| !TEST_int_eq(EVP_RAND_get_state(expected->ctx),
crypto/openssl/test/evp_test.c
3785
TEST_info("Error in test case %d of %d\n", i, expected->n + 1);
crypto/openssl/test/evp_test.c
3976
KDF_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
3978
size_t got_len = expected->output_len;
crypto/openssl/test/evp_test.c
3983
if (sk_OPENSSL_STRING_num(expected->init_controls) > 0) {
crypto/openssl/test/evp_test.c
3984
if (!ctrl2params(t, expected->init_controls,
crypto/openssl/test/evp_test.c
3988
if (!EVP_KDF_CTX_set_params(expected->ctx, params)) {
crypto/openssl/test/evp_test.c
3994
if (!EVP_KDF_CTX_set_params(expected->ctx, expected->params)) {
crypto/openssl/test/evp_test.c
4004
&& (ctx = EVP_KDF_CTX_dup(expected->ctx)) != NULL) {
crypto/openssl/test/evp_test.c
4005
EVP_KDF_CTX_free(expected->ctx);
crypto/openssl/test/evp_test.c
4006
expected->ctx = ctx;
crypto/openssl/test/evp_test.c
4008
if (EVP_KDF_derive(expected->ctx, got, got_len, NULL) <= 0) {
crypto/openssl/test/evp_test.c
4012
if (!kdf_check_fips_approved(expected->ctx, t)) {
crypto/openssl/test/evp_test.c
4017
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
4102
PKEY_KDF_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
4108
got_len = expected->output_len;
crypto/openssl/test/evp_test.c
4111
if (EVP_PKEY_derive(expected->ctx, NULL, &got_len) <= 0) {
crypto/openssl/test/evp_test.c
4122
got_len = expected->output_len;
crypto/openssl/test/evp_test.c
4124
got_len = expected->output_len * 2;
crypto/openssl/test/evp_test.c
4131
if (EVP_PKEY_derive(expected->ctx, got, &got_len) <= 0) {
crypto/openssl/test/evp_test.c
4135
if (!pkey_check_fips_approved(expected->ctx, t)) {
crypto/openssl/test/evp_test.c
4139
if (!TEST_mem_eq(expected->output, expected->output_len, got, got_len)) {
crypto/openssl/test/evp_test.c
4672
DIGESTSIGN_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
4676
if (!signverify_init(t, expected))
crypto/openssl/test/evp_test.c
4678
if (!check_deterministic_noncetype(t, expected))
crypto/openssl/test/evp_test.c
4681
for (i = 0; i < sk_OPENSSL_STRING_num(expected->controls); i++) {
crypto/openssl/test/evp_test.c
4682
char *value = sk_OPENSSL_STRING_value(expected->controls, i);
crypto/openssl/test/evp_test.c
4683
if (!pkey_test_ctrl(t, expected->pctx, value) || t->err != NULL)
crypto/openssl/test/evp_test.c
4687
if (!evp_test_buffer_do(expected->input, digestsign_update_fn,
crypto/openssl/test/evp_test.c
4688
expected->ctx)) {
crypto/openssl/test/evp_test.c
4693
if (!EVP_DigestSignFinal(expected->ctx, NULL, &got_len)) {
crypto/openssl/test/evp_test.c
4702
if (!EVP_DigestSignFinal(expected->ctx, got, &got_len)) {
crypto/openssl/test/evp_test.c
4707
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
4770
DIGESTSIGN_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
4774
if (!signverify_init(t, expected))
crypto/openssl/test/evp_test.c
4777
if (!EVP_DigestSign(expected->ctx, NULL, &got_len,
crypto/openssl/test/evp_test.c
4778
expected->osin, expected->osin_len)) {
crypto/openssl/test/evp_test.c
4787
if (!EVP_DigestSign(expected->ctx, got, &got_len,
crypto/openssl/test/evp_test.c
4788
expected->osin, expected->osin_len)) {
crypto/openssl/test/evp_test.c
4793
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
760
DIGEST_DATA *expected = t->data;
crypto/openssl/test/evp_test.c
773
got = OPENSSL_malloc(expected->output_len > EVP_MAX_MD_SIZE ? expected->output_len : EVP_MAX_MD_SIZE);
crypto/openssl/test/evp_test.c
777
if (expected->xof > 0) {
crypto/openssl/test/evp_test.c
780
&expected->output_len);
crypto/openssl/test/evp_test.c
782
if (expected->digest_size > 0) {
crypto/openssl/test/evp_test.c
784
&expected->digest_size);
crypto/openssl/test/evp_test.c
786
if (expected->pad_type > 0)
crypto/openssl/test/evp_test.c
788
&expected->pad_type);
crypto/openssl/test/evp_test.c
791
if (!EVP_DigestInit_ex2(mctx, expected->digest, params)) {
crypto/openssl/test/evp_test.c
796
if (!evp_test_buffer_do(expected->input, digest_update_fn, mctx)) {
crypto/openssl/test/evp_test.c
801
xof |= EVP_MD_xof(expected->digest);
crypto/openssl/test/evp_test.c
818
got_len = expected->output_len;
crypto/openssl/test/evp_test.c
829
if (!TEST_int_eq(expected->output_len, got_len)) {
crypto/openssl/test/evp_test.c
834
expected->output, expected->output_len,
crypto/openssl/test/evp_test.c
841
if (sk_EVP_TEST_BUFFER_num(expected->input) == 1
crypto/openssl/test/evp_test.c
844
&& !TEST_ptr(inbuf = sk_EVP_TEST_BUFFER_value(expected->input, 0))
crypto/openssl/test/evp_test.c
848
EVP_MD_get0_name(expected->fetched_digest),
crypto/openssl/test/evp_test.c
852
expected->output, expected->output_len)) {
crypto/openssl/test/hexstr_test.c
127
&& TEST_mem_eq(buf, len, test->expected, test->expected_len)
crypto/openssl/test/hexstr_test.c
21
const unsigned char *expected;
crypto/openssl/test/hexstr_test.c
77
|| !TEST_mem_eq(buf, len, test->expected, test->expected_len)
crypto/openssl/test/hexstr_test.c
99
|| !TEST_mem_eq(buf, len, test->expected, test->expected_len)
crypto/openssl/test/keymgmt_internal_test.c
161
static BN_ULONG expected[] = {
crypto/openssl/test/keymgmt_internal_test.c
175
static unsigned long keydata[OSSL_NELEM(expected)] = {
crypto/openssl/test/keymgmt_internal_test.c
183
|| !TEST_true(BN_set_word(bn1, expected[N]))
crypto/openssl/test/keymgmt_internal_test.c
185
|| !TEST_true(BN_set_word(bn2, expected[E]))
crypto/openssl/test/keymgmt_internal_test.c
187
|| !TEST_true(BN_set_word(bn3, expected[D]))
crypto/openssl/test/keymgmt_internal_test.c
192
|| !TEST_true(BN_set_word(bn1, expected[P]))
crypto/openssl/test/keymgmt_internal_test.c
194
|| !TEST_true(BN_set_word(bn2, expected[Q]))
crypto/openssl/test/keymgmt_internal_test.c
199
|| !TEST_true(BN_set_word(bn1, expected[DP]))
crypto/openssl/test/keymgmt_internal_test.c
201
|| !TEST_true(BN_set_word(bn2, expected[DQ]))
crypto/openssl/test/keymgmt_internal_test.c
203
|| !TEST_true(BN_set_word(bn3, expected[QINV]))
crypto/openssl/test/keymgmt_internal_test.c
209
|| !TEST_true(BN_set_word(bn_primes[0], expected[F3]))
crypto/openssl/test/keymgmt_internal_test.c
211
|| !TEST_true(BN_set_word(bn_exps[0], expected[E3]))
crypto/openssl/test/keymgmt_internal_test.c
213
|| !TEST_true(BN_set_word(bn_coeffs[0], expected[C2]))
crypto/openssl/test/keymgmt_internal_test.c
250
for (i = 0; i < OSSL_NELEM(expected); i++) {
crypto/openssl/test/keymgmt_internal_test.c
251
int rv = TEST_int_eq(expected[i], keydata[i]);
crypto/openssl/test/keymgmt_internal_test.c
259
ret = (ret == OSSL_NELEM(expected));
crypto/openssl/test/mdc2_internal_test.c
27
const unsigned char expected[MDC2_DIGEST_LENGTH];
crypto/openssl/test/mdc2_internal_test.c
59
if (!TEST_mem_eq(testdata.expected, MDC2_DIGEST_LENGTH,
crypto/openssl/test/ml_dsa_test.c
200
td->expected))
crypto/openssl/test/ml_dsa_test.c
377
int expected;
crypto/openssl/test/ml_dsa_test.c
416
|| !TEST_int_eq(EVP_PKEY_sign_message_init(sctx, sig_alg, params), sp->expected))
crypto/openssl/test/ml_dsa_test.c
418
if (sp->expected == 0) {
crypto/openssl/test/ml_dsa_test.c
486
if (sp->expected == 0) {
crypto/openssl/test/ml_dsa_test.c
55
int expected)
crypto/openssl/test/ml_dsa_test.c
77
expected))
crypto/openssl/test/params_test.c
669
int expected = (strlen(values[i]) % 2) != 1;
crypto/openssl/test/params_test.c
674
if (expected)
crypto/openssl/test/params_test.c
686
(expected ? "failure" : "success"), values[i]);
crypto/openssl/test/pkey_meth_kdf_test.c
138
const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/pkey_meth_kdf_test.c
141
if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) {
crypto/openssl/test/pkey_meth_kdf_test.c
205
const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/pkey_meth_kdf_test.c
215
if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) {
crypto/openssl/test/pkey_meth_kdf_test.c
71
const unsigned char expected[sizeof(out)] = {
crypto/openssl/test/pkey_meth_kdf_test.c
75
if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) {
crypto/openssl/test/poly1305_internal_test.c
1106
const unsigned char *expected = test.expected.data;
crypto/openssl/test/poly1305_internal_test.c
1107
size_t expectedlen = test.expected.size;
crypto/openssl/test/poly1305_internal_test.c
1117
if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) {
crypto/openssl/test/poly1305_internal_test.c
1128
if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) {
crypto/openssl/test/poly1305_internal_test.c
1142
if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) {
crypto/openssl/test/poly1305_internal_test.c
1153
if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) {
crypto/openssl/test/poly1305_internal_test.c
27
SIZED_DATA expected;
crypto/openssl/test/property_test.c
443
char *expected;
crypto/openssl/test/property_test.c
485
|| !TEST_str_eq((char *)result, queries[i].expected)) {
crypto/openssl/test/property_test.c
505
|| !TEST_str_eq((char *)result, queries[i].expected)) {
crypto/openssl/test/property_test.c
537
|| !TEST_str_eq((char *)result, queries[i].expected)) {
crypto/openssl/test/quic_fc_test.c
239
#define RX_OP_CHECK_CWM_CONN(expected) \
crypto/openssl/test/quic_fc_test.c
240
{ RX_OPC_CHECK_CWM_CONN, 0, (expected) },
crypto/openssl/test/quic_fc_test.c
241
#define RX_OP_CHECK_CWM_STREAM(stream_id, expected) \
crypto/openssl/test/quic_fc_test.c
242
{ RX_OPC_CHECK_CWM_STREAM, (stream_id), (expected) },
crypto/openssl/test/quic_fc_test.c
243
#define RX_OP_CHECK_SWM_CONN(expected) \
crypto/openssl/test/quic_fc_test.c
244
{ RX_OPC_CHECK_SWM_CONN, 0, (expected) },
crypto/openssl/test/quic_fc_test.c
245
#define RX_OP_CHECK_SWM_STREAM(stream_id, expected) \
crypto/openssl/test/quic_fc_test.c
246
{ RX_OPC_CHECK_SWM_STREAM, (stream_id), (expected) },
crypto/openssl/test/quic_fc_test.c
247
#define RX_OP_CHECK_RWM_CONN(expected) \
crypto/openssl/test/quic_fc_test.c
248
{ RX_OPC_CHECK_RWM_CONN, 0, (expected) },
crypto/openssl/test/quic_fc_test.c
249
#define RX_OP_CHECK_RWM_STREAM(stream_id, expected) \
crypto/openssl/test/quic_fc_test.c
250
{ RX_OPC_CHECK_RWM_STREAM, (stream_id), (expected) },
crypto/openssl/test/quic_fc_test.c
251
#define RX_OP_CHECK_CHANGED_CONN(expected, clear) \
crypto/openssl/test/quic_fc_test.c
252
{ RX_OPC_CHECK_CHANGED_CONN, 0, (expected), (clear) },
crypto/openssl/test/quic_fc_test.c
253
#define RX_OP_CHECK_CHANGED_STREAM(stream_id, expected, clear) \
crypto/openssl/test/quic_fc_test.c
254
{ RX_OPC_CHECK_CHANGED_STREAM, (stream_id), (expected), (clear) },
crypto/openssl/test/quic_fc_test.c
255
#define RX_OP_CHECK_ERROR_CONN(expected, clear) \
crypto/openssl/test/quic_fc_test.c
256
{ RX_OPC_CHECK_ERROR_CONN, 0, (expected), (clear) },
crypto/openssl/test/quic_fc_test.c
257
#define RX_OP_CHECK_ERROR_STREAM(stream_id, expected, clear) \
crypto/openssl/test/quic_fc_test.c
258
{ RX_OPC_CHECK_ERROR_STREAM, (stream_id), (expected), (clear) },
crypto/openssl/test/quic_fc_test.c
267
#define RX_OP_CHECK_CWM(expected) \
crypto/openssl/test/quic_fc_test.c
268
RX_OP_CHECK_CWM_CONN(expected) \
crypto/openssl/test/quic_fc_test.c
269
RX_OP_CHECK_CWM_STREAM(0, expected)
crypto/openssl/test/quic_fc_test.c
270
#define RX_OP_CHECK_SWM(expected) \
crypto/openssl/test/quic_fc_test.c
271
RX_OP_CHECK_SWM_CONN(expected) \
crypto/openssl/test/quic_fc_test.c
272
RX_OP_CHECK_SWM_STREAM(0, expected)
crypto/openssl/test/quic_fc_test.c
273
#define RX_OP_CHECK_RWM(expected) \
crypto/openssl/test/quic_fc_test.c
274
RX_OP_CHECK_RWM_CONN(expected) \
crypto/openssl/test/quic_fc_test.c
275
RX_OP_CHECK_RWM_STREAM(0, expected)
crypto/openssl/test/quic_fc_test.c
276
#define RX_OP_CHECK_CHANGED(expected, clear) \
crypto/openssl/test/quic_fc_test.c
277
RX_OP_CHECK_CHANGED_CONN(expected, clear) \
crypto/openssl/test/quic_fc_test.c
278
RX_OP_CHECK_CHANGED_STREAM(0, expected, clear)
crypto/openssl/test/quic_fc_test.c
279
#define RX_OP_CHECK_ERROR(expected, clear) \
crypto/openssl/test/quic_fc_test.c
280
RX_OP_CHECK_ERROR_CONN(expected, clear) \
crypto/openssl/test/quic_fc_test.c
281
RX_OP_CHECK_ERROR_STREAM(0, expected, clear)
crypto/openssl/test/quic_qlog_test.c
145
if (!TEST_mem_eq(buf, buf_len, expected, sizeof(expected)))
crypto/openssl/test/quic_qlog_test.c
17
static const char expected[] = {
crypto/openssl/test/quic_record_test.c
2141
const unsigned char *expected;
crypto/openssl/test/quic_record_test.c
3003
if (!TEST_true(PACKET_buf_init(&pkt, t->expected, trunc_len)))
crypto/openssl/test/quic_record_test.c
3015
if (!TEST_ptr_eq(ptrs.raw_start, t->expected))
crypto/openssl/test/quic_record_test.c
3022
if (!TEST_ptr_eq(ptrs.raw_pn, t->expected + t->pn_offset))
crypto/openssl/test/quic_record_test.c
3027
if (!TEST_ptr_eq(ptrs.raw_sample, t->expected + t->sample_offset))
crypto/openssl/test/quic_record_test.c
3043
if (!TEST_mem_eq(buf, l, t->expected, t->expected_len))
crypto/openssl/test/quic_record_test.c
3064
memcpy(hbuf, t->expected, t->expected_len);
crypto/openssl/test/quic_record_test.c
3075
unsigned char d = t->expected[i] ^ hbuf[i], rej_mask = 0xff;
crypto/openssl/test/quic_record_test.c
3111
if (!TEST_mem_eq(hbuf, t->expected_len, t->expected, t->expected_len))
crypto/openssl/test/quic_record_test.c
77
#define RX_OP_CHECK_KEY_EPOCH(expected) \
crypto/openssl/test/quic_record_test.c
78
{ RX_TEST_OP_CHECK_KEY_EPOCH, 0, NULL, 0, NULL, 0, 0, (expected), NULL },
crypto/openssl/test/quic_record_test.c
83
#define RX_OP_CHECK_PKT_EPOCH(expected) \
crypto/openssl/test/quic_record_test.c
84
{ RX_TEST_OP_CHECK_PKT_EPOCH, 0, NULL, 0, NULL, 0, 0, (expected), NULL },
crypto/openssl/test/quic_srt_gen_test.c
23
QUIC_STATELESS_RESET_TOKEN expected;
crypto/openssl/test/quic_srt_gen_test.c
63
&t->expected, sizeof(t->expected)))
crypto/openssl/test/quic_stream_test.c
223
size_t consumed = 0, total_written = 0, rd, cur_rd, expected = 0, start_at;
crypto/openssl/test/quic_stream_test.c
290
++expected;
crypto/openssl/test/quic_stream_test.c
306
for (i = 0, rd = 0; rd < expected; ++i) {
crypto/openssl/test/quic_stream_test.c
314
if (!TEST_size_t_le(iov[j].buf_len + rd, expected))
crypto/openssl/test/quic_stream_test.c
328
if (!TEST_mem_eq(dst_buf, rd, ref_dst_buf, expected))
crypto/openssl/test/radix/quic_ops.c
1248
#define OP_EXPECT_SSL_ERR(name, expected) \
crypto/openssl/test/radix/quic_ops.c
1250
OP_PUSH_U64(expected), \
crypto/openssl/test/radix/quic_ops.c
1253
#define OP_EXPECT_STREAM_ID(expected) \
crypto/openssl/test/radix/quic_ops.c
1254
(OP_PUSH_U64(expected), \
crypto/openssl/test/radix/quic_ops.c
896
uint64_t expected;
crypto/openssl/test/radix/quic_ops.c
899
F_POP(expected);
crypto/openssl/test/radix/quic_ops.c
902
if (!TEST_size_t_eq((size_t)SSL_get_error(ssl, 0), (size_t)expected)
crypto/openssl/test/radix/quic_ops.c
915
uint64_t expected, actual;
crypto/openssl/test/radix/quic_ops.c
917
F_POP(expected);
crypto/openssl/test/radix/quic_ops.c
921
if (!TEST_uint64_t_eq(actual, expected))
crypto/openssl/test/rc4test.c
107
static unsigned char expected[] = {
crypto/openssl/test/rc4test.c
121
return TEST_mem_eq(md, sizeof(md), expected, sizeof(expected));
crypto/openssl/test/rpktest.c
105
int testresult = 0, ret, expected = 1;
crypto/openssl/test/rpktest.c
273
expected = 0;
crypto/openssl/test/rpktest.c
381
expected = 0;
crypto/openssl/test/rpktest.c
466
expected = 0;
crypto/openssl/test/rpktest.c
476
expected = 0;
crypto/openssl/test/rpktest.c
484
if (!TEST_int_eq(expected, ret))
crypto/openssl/test/rpktest.c
487
if (expected <= 0) {
crypto/openssl/test/siphash_internal_test.c
178
unsigned char *expected = test.expected.data;
crypto/openssl/test/siphash_internal_test.c
179
size_t expectedlen = test.expected.size;
crypto/openssl/test/siphash_internal_test.c
204
|| !TEST_mem_eq(out, expectedlen, expected, expectedlen))
crypto/openssl/test/siphash_internal_test.c
216
if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) {
crypto/openssl/test/siphash_internal_test.c
233
if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) {
crypto/openssl/test/siphash_internal_test.c
247
if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) {
crypto/openssl/test/siphash_internal_test.c
27
SIZED_DATA expected;
crypto/openssl/test/sm2_internal_test.c
143
unsigned char *expected = OPENSSL_hexstr2buf(ctext_hex, NULL);
crypto/openssl/test/sm2_internal_test.c
151
if (!TEST_ptr(expected)
crypto/openssl/test/sm2_internal_test.c
182
if (!TEST_mem_eq(ctext, ctext_len, expected, ctext_len))
crypto/openssl/test/sm2_internal_test.c
203
OPENSSL_free(expected);
crypto/openssl/test/sm4_internal_test.c
38
static const uint8_t expected[SM4_BLOCK_SIZE] = {
crypto/openssl/test/sm4_internal_test.c
61
if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected, SM4_BLOCK_SIZE))
crypto/openssl/test/sslapitest.c
11118
int expected = (idx <= 2) ? 0 : 1;
crypto/openssl/test/sslapitest.c
11200
expected))
crypto/openssl/test/sslapitest.c
214
struct sslapitest_log_counts *expected)
crypto/openssl/test/sslapitest.c
336
expected->rsa_key_exchange_count)
crypto/openssl/test/sslapitest.c
338
expected->master_secret_count)
crypto/openssl/test/sslapitest.c
340
expected->client_early_secret_count)
crypto/openssl/test/sslapitest.c
342
expected->client_handshake_secret_count)
crypto/openssl/test/sslapitest.c
344
expected->server_handshake_secret_count)
crypto/openssl/test/sslapitest.c
346
expected->client_application_secret_count)
crypto/openssl/test/sslapitest.c
348
expected->server_application_secret_count)
crypto/openssl/test/sslapitest.c
350
expected->early_exporter_secret_count)
crypto/openssl/test/sslapitest.c
352
expected->exporter_secret_count))
crypto/openssl/test/sslapitest.c
363
struct sslapitest_log_counts expected;
crypto/openssl/test/sslapitest.c
366
memset(&expected, 0, sizeof(expected));
crypto/openssl/test/sslapitest.c
415
expected.rsa_key_exchange_count = 1;
crypto/openssl/test/sslapitest.c
416
expected.master_secret_count = 1;
crypto/openssl/test/sslapitest.c
418
SSL_get_session(clientssl), &expected)))
crypto/openssl/test/sslapitest.c
421
expected.rsa_key_exchange_count = 0;
crypto/openssl/test/sslapitest.c
423
SSL_get_session(serverssl), &expected)))
crypto/openssl/test/sslapitest.c
445
struct sslapitest_log_counts expected;
crypto/openssl/test/sslapitest.c
450
memset(&expected, 0, sizeof(expected));
crypto/openssl/test/sslapitest.c
491
expected.client_handshake_secret_count = 1;
crypto/openssl/test/sslapitest.c
492
expected.server_handshake_secret_count = 1;
crypto/openssl/test/sslapitest.c
493
expected.client_application_secret_count = 1;
crypto/openssl/test/sslapitest.c
494
expected.server_application_secret_count = 1;
crypto/openssl/test/sslapitest.c
495
expected.exporter_secret_count = 1;
crypto/openssl/test/sslapitest.c
497
SSL_get_session(clientssl), &expected))
crypto/openssl/test/sslapitest.c
500
&expected)))
crypto/openssl/test/sslapitest.c
533
expected.client_early_secret_count = 1;
crypto/openssl/test/sslapitest.c
534
expected.early_exporter_secret_count = 1;
crypto/openssl/test/sslapitest.c
536
SSL_get_session(clientssl), &expected))
crypto/openssl/test/sslapitest.c
539
&expected)))
crypto/openssl/test/test_test.c
22
#define TEST(expected, test) test_case((expected), #test, (test))
crypto/openssl/test/test_test.c
24
static int test_case(int expected, const char *test, int result)
crypto/openssl/test/test_test.c
26
if (result != expected) {
crypto/openssl/test/test_test.c
27
fprintf(stderr, "# FATAL: %s != %d\n", test, expected);
crypto/openssl/test/trace_api_test.c
123
static const char expected[] = OSSL_START "\n" OSSL_HELLO OSSL_STR80 "[len 81 limited to 80]: " OSSL_STR80
crypto/openssl/test/trace_api_test.c
125
static const size_t expected_len = sizeof(expected) - 1;
crypto/openssl/test/trace_api_test.c
154
if (!TEST_strn2_eq(p_buf, len, expected, expected_len))
crypto/openssl/test/verify_extra_test.c
181
static int test_self_signed(const char *filename, int use_trusted, int expected)
crypto/openssl/test/verify_extra_test.c
188
ret = TEST_int_eq(X509_self_signed(cert, 1), expected);
crypto/openssl/test/verify_extra_test.c
195
ret = ret && TEST_int_eq(X509_verify_cert(ctx), expected);
crypto/openssl/test/verify_extra_test.c
225
static int do_test_purpose(int purpose, int expected)
crypto/openssl/test/verify_extra_test.c
263
if (!TEST_int_eq(X509_verify_cert(ctx), expected))
crypto/openssl/test/wpackettest.c
583
uint64_t expected, actual = 0;
crypto/openssl/test/wpackettest.c
592
memcpy(&expected, rand_data, sizeof(expected));
crypto/openssl/test/wpackettest.c
599
expected &= OSSL_QUIC_VLINT_1B_MAX;
crypto/openssl/test/wpackettest.c
602
expected &= OSSL_QUIC_VLINT_2B_MAX;
crypto/openssl/test/wpackettest.c
605
expected &= OSSL_QUIC_VLINT_4B_MAX;
crypto/openssl/test/wpackettest.c
608
expected &= OSSL_QUIC_VLINT_8B_MAX;
crypto/openssl/test/wpackettest.c
613
|| !TEST_true(WPACKET_quic_write_vlint(&pkt, expected))
crypto/openssl/test/wpackettest.c
619
|| !TEST_uint64_t_eq(expected, actual))
crypto/openssl/test/x509_check_cert_pkey_test.c
110
static int expected; /* expected number of certs/CRLs/keys included */
crypto/openssl/test/x509_check_cert_pkey_test.c
133
return TEST_int_eq(count, expected);
crypto/openssl/test/x509_check_cert_pkey_test.c
166
if (!TEST_int_eq(sscanf(num, "%d", &expected), 1))
crypto/openssl/test/x509_check_cert_pkey_test.c
34
int ret = 0, type = 0, expected = 0, result = 0;
crypto/openssl/test/x509_check_cert_pkey_test.c
50
expected = 1;
crypto/openssl/test/x509_check_cert_pkey_test.c
52
expected = 0;
crypto/openssl/test/x509_check_cert_pkey_test.c
95
if (!TEST_int_eq(result, expected)) {
crypto/openssl/test/x509_check_cert_pkey_test.c
96
TEST_error("check private key: expected: %d, got: %d", expected, result);
crypto/openssl/test/x509_time_test.c
25
int expected;
crypto/openssl/test/x509_time_test.c
33
int expected;
crypto/openssl/test/x509_time_test.c
417
if (!TEST_int_eq(result, x509_cmp_tests[idx].expected)) {
crypto/openssl/test/x509_time_test.c
419
idx, x509_cmp_tests[idx].expected, result);
crypto/openssl/test/x509_time_test.c
517
if (!TEST_int_eq(result, x509_format_tests[idx].expected)) {
crypto/openssl/test/x509_time_test.c
519
idx, x509_format_tests[idx].expected, result);
lib/libc/stdlib/random.c
250
size_t expected, len;
lib/libc/stdlib/random.c
256
expected = len;
lib/libc/stdlib/random.c
261
len != expected) {
lib/libc/tests/gen/fts_children_test.c
116
static const char *expected[] = { "a", "b", "c", NULL };
lib/libc/tests/gen/fts_children_test.c
139
ATF_REQUIRE_MSG(expected[i] != NULL,
lib/libc/tests/gen/fts_children_test.c
141
ATF_CHECK_STREQ(expected[i], p->fts_name);
lib/libc/tests/gen/fts_children_test.c
144
ATF_CHECK_MSG(expected[i] == NULL,
lib/libc/tests/iconv/iconvctl_test.c
31
test_trivialp(const char *src, const char *dst, int expected)
lib/libc/tests/iconv/iconvctl_test.c
42
ATF_REQUIRE(actual == expected);
lib/libc/tests/locale/newlocale_test.c
47
check_lparts(const char *expected)
lib/libc/tests/locale/newlocale_test.c
55
ATF_CHECK_STREQ_MSG(expected, actual, "wrong value for %s",
lib/libc/tests/net/link_addr_test.cc
480
for (auto const &[buflen, expected] : buftests) {
lib/libc/tests/net/link_addr_test.cc
486
ATF_REQUIRE_EQ(expected, bufstr());
lib/libc/tests/stdlib/strfmon_test.c
123
ATF_CHECK_STREQ_MSG(tests[i].expected, actual,
lib/libc/tests/stdlib/strfmon_test.c
137
const char *expected;
lib/libc/tests/stdlib/strfmon_test.c
166
ATF_CHECK_STREQ_MSG(tests[i].expected, actual,
lib/libc/tests/stdlib/strfmon_test.c
176
const char *expected;
lib/libc/tests/stdlib/strfmon_test.c
190
ATF_CHECK_STREQ(tests[i].expected, actual);
lib/libc/tests/stdlib/strfmon_test.c
200
const char *expected;
lib/libc/tests/stdlib/strfmon_test.c
21
char actual[40], expected[40];
lib/libc/tests/stdlib/strfmon_test.c
225
ATF_CHECK_STREQ_MSG(tests[i].expected, actual,
lib/libc/tests/stdlib/strfmon_test.c
254
const char *expected;
lib/libc/tests/stdlib/strfmon_test.c
270
ATF_REQUIRE_STREQ(tests[i].expected, buf);
lib/libc/tests/stdlib/strfmon_test.c
40
strcpy(expected, "1");
lib/libc/tests/stdlib/strfmon_test.c
41
strlcat(expected, ts, sizeof(expected));
lib/libc/tests/stdlib/strfmon_test.c
42
strlcat(expected, "234", sizeof(expected));
lib/libc/tests/stdlib/strfmon_test.c
45
actual[strlen(expected)] = '\0';
lib/libc/tests/stdlib/strfmon_test.c
46
ATF_CHECK_STREQ(expected, actual);
lib/libc/tests/stdlib/strfmon_test.c
54
const char *expected;
lib/libc/tests/stdlib/strfmon_test.c
80
ATF_CHECK_STREQ_MSG(tests[i].expected, actual,
lib/libc/tests/stdlib/strfmon_test.c
94
const char *expected;
lib/libc/tests/string/memccpy_test.c
101
assert(memccpy_fn(dst, src, s[size-1], bufsize) == expected);
lib/libc/tests/string/memccpy_test.c
82
char *src, *dst, *expected;
lib/libc/tests/string/memccpy_test.c
93
expected = NULL;
lib/libc/tests/string/memccpy_test.c
97
expected = dst + size;
lib/libc/tests/string/memcmp_test.c
57
check_memcmp(const char *a, const char *b, size_t len, int expected)
lib/libc/tests/string/memcmp_test.c
62
ATF_CHECK_EQ_MSG(RES(expected), RES(got),
lib/libc/tests/string/memcmp_test.c
64
__XSTRING(MEMCMP), a, b, len, got, expected);
lib/libc/tests/string/stpncpy_test.c
80
char *src, *dst, *expected;
lib/libc/tests/string/stpncpy_test.c
91
expected = dst + bufsize;
lib/libc/tests/string/stpncpy_test.c
95
expected = dst + size - 1;
lib/libc/tests/string/stpncpy_test.c
99
assert(stpncpy_fn(dst, src, bufsize) == expected);
lib/libc/tests/string/strcspn_test.c
53
size_t i, outcome, expected;
lib/libc/tests/string/strcspn_test.c
73
expected = 0;
lib/libc/tests/string/strcspn_test.c
76
expected = buflen - 1;
lib/libc/tests/string/strcspn_test.c
78
expected = buflen;
lib/libc/tests/string/strcspn_test.c
82
expected = buflen - 1;
lib/libc/tests/string/strcspn_test.c
84
expected = buflen;
lib/libc/tests/string/strcspn_test.c
88
ATF_CHECK_EQ_MSG(expected, outcome, "%s(%p[%zu], %p[%zu]) = %zu != %zu",
lib/libc/tests/string/strcspn_test.c
89
__XSTRING(STRXSPN), buf, buflen, set, setlen, outcome, expected);
lib/libcasper/services/cap_dns/tests/dns_test.c
199
runtest(cap_channel_t *capdns, unsigned int expected)
lib/libcasper/services/cap_dns/tests/dns_test.c
324
ATF_REQUIRE_MSG(result == expected,
lib/libcasper/services/cap_dns/tests/dns_test.c
325
"expected 0x%x, got 0x%x", expected, result);
lib/libcasper/services/cap_grp/tests/grp_test.c
903
runtest_fields(cap_channel_t *capgrp, unsigned int expected)
lib/libcasper/services/cap_grp/tests/grp_test.c
911
if (group_fields(grp) != expected)
lib/libcasper/services/cap_grp/tests/grp_test.c
916
if (group_fields(grp) != expected)
lib/libcasper/services/cap_grp/tests/grp_test.c
920
if (group_fields(grp) != expected)
lib/libcasper/services/cap_grp/tests/grp_test.c
924
if (group_fields(grp) != expected)
lib/libcasper/services/cap_grp/tests/grp_test.c
928
if (group_fields(grp) != expected)
lib/libcasper/services/cap_grp/tests/grp_test.c
932
if (group_fields(grp) != expected)
lib/libcasper/services/cap_pwd/tests/pwd_test.c
1000
if ((passwd_fields(pwd) & ~expected) != 0)
lib/libcasper/services/cap_pwd/tests/pwd_test.c
970
runtest_fields(cap_channel_t *cappwd, unsigned int expected)
lib/libcasper/services/cap_pwd/tests/pwd_test.c
979
if ((passwd_fields(pwd) & ~expected) != 0)
lib/libcasper/services/cap_pwd/tests/pwd_test.c
984
if ((passwd_fields(pwd) & ~expected) != 0)
lib/libcasper/services/cap_pwd/tests/pwd_test.c
988
if ((passwd_fields(pwd) & ~expected) != 0)
lib/libcasper/services/cap_pwd/tests/pwd_test.c
992
if ((passwd_fields(pwd) & ~expected) != 0)
lib/libcasper/services/cap_pwd/tests/pwd_test.c
996
if ((passwd_fields(pwd) & ~expected) != 0)
lib/libcrypt/crypt-sha256.c
308
const char *expected;
lib/libcrypt/crypt-sha256.c
398
static const char expected[32] =
lib/libcrypt/crypt-sha256.c
402
if (memcmp(expected, sum, 32) != 0) {
lib/libcrypt/crypt-sha256.c
410
if (strcmp(cp, tests2[cnt].expected) != 0) {
lib/libcrypt/crypt-sha256.c
412
cnt, tests2[cnt].expected, cp);
lib/libcrypt/crypt-sha512.c
339
const char *expected;
lib/libcrypt/crypt-sha512.c
419
static const char expected[64] =
lib/libcrypt/crypt-sha512.c
425
if (memcmp(expected, sum, 64) != 0) {
lib/libcrypt/crypt-sha512.c
433
if (strcmp(cp, tests2[cnt].expected) != 0) {
lib/libcrypt/crypt-sha512.c
435
cnt, tests2[cnt].expected, cp);
lib/libutil/tests/trimdomain-nodomain_test.c
63
const char *expected = (output == NULL) ? input : output;
lib/libutil/tests/trimdomain-nodomain_test.c
68
if (strcmp(testhost, expected) != 0) {
lib/libutil/tests/trimdomain-nodomain_test.c
70
printf("# %s -> %s (expected %s)\n", input, testhost, expected);
lib/libutil/tests/trimdomain_test.c
63
const char *expected = (output == NULL) ? input : output;
lib/libutil/tests/trimdomain_test.c
68
if (strcmp(testhost, expected) != 0) {
lib/libutil/tests/trimdomain_test.c
70
printf("# %s -> %s (expected %s)\n", input, testhost, expected);
lib/msun/tests/conj_test.c
100
ATF_REQUIRE_MSG(cfpequal(libconj(in), expected),
lib/msun/tests/conj_test.c
107
ATF_REQUIRE_MSG(cfpequal(libconjl(in), expected),
lib/msun/tests/conj_test.c
75
complex long double expected;
lib/msun/tests/conj_test.c
79
__real__ expected = __real__ in = tests[2 * i];
lib/msun/tests/conj_test.c
81
__imag__ expected = -cimag(in);
lib/msun/tests/conj_test.c
92
cfpequal(libconjf(in), expected),
lib/msun/tests/fmaximum_fminimum_test.c
47
#define TEST(func, type, x, y, expected, rmode) do { \
lib/msun/tests/fmaximum_fminimum_test.c
54
ATF_CHECK_MSG(fpequal_cs(__result, (expected), true), \
lib/msun/tests/fmaximum_fminimum_test.c
56
(x), (y), rmode, __result, (expected)); \
lib/msun/tests/fmaxmin_test.c
45
#define TEST(func, type, x, y, expected, rmode) do { \
lib/msun/tests/fmaxmin_test.c
52
ATF_CHECK_MSG(fpequal_cs(__result, (expected), true), \
lib/msun/tests/fmaxmin_test.c
54
(x), (y), rmode, __result, (expected)); \
lib/msun/tests/next_test.c
251
_testl(const char *exp, int line, long double actual, long double expected,
lib/msun/tests/next_test.c
257
if (!fpequal_cs(actual, expected, true)) {
lib/msun/tests/next_test.c
259
"%s returned %La, expecting %La\n", exp, actual, expected);
libexec/tftpd/tests/functional.c
1076
char expected[] = "foo\nbar\rbaz\n";
libexec/tftpd/tests/functional.c
1095
require_bufeq(expected, sizeof(expected), buffer, (size_t)r);
libexec/tftpd/tests/functional.c
301
require_bufeq(const char *expected, size_t expected_len,
libexec/tftpd/tests/functional.c
309
ATF_REQUIRE_EQ_MSG(expected[i], actual[i],
libexec/tftpd/tests/functional.c
311
expected[i], i, actual[i]);
libexec/tftpd/tests/functional.c
55
static void require_bufeq(const char *expected, size_t expected_len,
libexec/tftpd/tests/functional.c
685
char expected[] = "foo\r\nbar\r\0baz\r\n";
libexec/tftpd/tests/functional.c
693
recv_data(1, expected, sizeof(expected));
sbin/dhclient/tests/option-domain-search.c
113
char *expected = "example.org. example.com.";
sbin/dhclient/tests/option-domain-search.c
124
if (option->len != strlen(expected) ||
sbin/dhclient/tests/option-domain-search.c
125
strcmp(option->data, expected) != 0)
sbin/dhclient/tests/option-domain-search.c
187
char *expected = "example.org. foobar.org.";
sbin/dhclient/tests/option-domain-search.c
198
if (option->len != strlen(expected) ||
sbin/dhclient/tests/option-domain-search.c
199
strcmp(option->data, expected) != 0)
sbin/dhclient/tests/option-domain-search.c
287
char *expected = "example.org. cl.foobar.com. fr.foobar.com.";
sbin/dhclient/tests/option-domain-search.c
298
if (option->len != strlen(expected) ||
sbin/dhclient/tests/option-domain-search.c
299
strcmp(option->data, expected) != 0)
sbin/dhclient/tests/option-domain-search.c
39
char *expected = "example.org.";
sbin/dhclient/tests/option-domain-search.c
50
if (option->len != strlen(expected) ||
sbin/dhclient/tests/option-domain-search.c
51
strcmp(option->data, expected) != 0)
sys/arm/arm/stdatomic.c
224
__sync_val_compare_and_swap_##N##_c(uintN_t *mem, uintN_t expected, \
sys/arm/arm/stdatomic.c
233
put_##N(&expected32, mem, expected); \
sys/arm/arm/stdatomic.c
356
__sync_val_compare_and_swap_4_c(uint32_t *mem, uint32_t expected,
sys/arm/arm/stdatomic.c
372
: "r" (expected), "r" (desired), "m" (*mem));
sys/cddl/compat/opensolaris/sys/atomic.h
103
} while (cmp == expected);
sys/cddl/compat/opensolaris/sys/atomic.h
129
uint64_t expected = cmp;
sys/cddl/compat/opensolaris/sys/atomic.h
134
} while (cmp == expected);
sys/cddl/compat/opensolaris/sys/atomic.h
98
uint32_t expected = cmp;
sys/dev/bxe/bxe.c
17713
uint32_t expected,
sys/dev/bxe/bxe.c
17719
while ((val = REG_RD(sc, reg)) != expected && cur_cnt--) {
sys/dev/bxe/bxe.h
2270
uint32_t expected,
sys/dev/bxe/bxe.h
2278
if (val == expected) {
sys/dev/e1000/if_igb_iov.c
1023
u32 expected;
sys/dev/e1000/if_igb_iov.c
1027
expected = 0;
sys/dev/e1000/if_igb_iov.c
1029
expected = 1U << (vf->default_vlan & 0x1f);
sys/dev/e1000/if_igb_iov.c
1030
if (vf->vlans[i] != expected)
sys/dev/firewire/fwcrom.c
241
crom_crc_valid(uint32_t *data, int len, uint16_t expected)
sys/dev/firewire/fwcrom.c
244
return (crom_crc(data, len) == expected);
sys/dev/firewire/iec13213.h
218
int crom_crc_valid(uint32_t *data, int len, uint16_t expected);
sys/dev/iicbus/sensor/htu21.c
106
check_crc_16(const uint8_t *data, uint8_t expected)
sys/dev/iicbus/sensor/htu21.c
111
return (crc == expected);
sys/dev/iicbus/sensor/htu21.c
115
check_crc_8(const uint8_t data, uint8_t expected)
sys/dev/iicbus/sensor/htu21.c
120
return (crc == expected);
sys/dev/iwn/if_iwnreg.h
1435
uint32_t expected;
sys/dev/mlx5/driver.h
1171
int mlx5_vsc_wait_on_flag(struct mlx5_core_dev *mdev, u32 expected);
sys/dev/mlx5/mlx5_core/mlx5_vsc.c
87
mlx5_vsc_wait_on_flag(struct mlx5_core_dev *mdev, u32 expected)
sys/dev/mlx5/mlx5_core/mlx5_vsc.c
99
if (expected == MLX5_VSC_GET(vsc_addr, &flag, flag))
sys/dev/mlx5/mlx5_ib/mlx5_ib_cq.c
416
item->expected = be32_to_cpu(cqe->expected_trans_sig) >> 16;
sys/dev/mlx5/mlx5_ib/mlx5_ib_cq.c
421
item->expected = be32_to_cpu(cqe->expected_reftag);
sys/dev/mlx5/mlx5_ib/mlx5_ib_cq.c
426
item->expected = be32_to_cpu(cqe->expected_trans_sig) & 0xffff;
sys/dev/mlx5/mlx5_ib/mlx5_ib_cq.c
636
mr->sig->err_item.expected,
sys/dev/pci/pci.c
1124
vpd_expectbyte(struct vpd_readstate *vrs, uint8_t expected)
sys/dev/pci/pci.c
1131
if (data == expected)
sys/dev/wpi/if_wpi.c
2235
uint32_t expected, misses, received, threshold;
sys/dev/wpi/if_wpi.c
2241
expected = le32toh(miss->expected);
sys/dev/wpi/if_wpi.c
2248
expected);
sys/dev/wpi/if_wpi.c
2251
(received == 0 && expected >= threshold)) {
sys/dev/wpi/if_wpireg.h
554
uint32_t expected;
sys/ofed/include/rdma/signature.h
118
u32 expected;
sys/security/mac_do/mac_do.c
1301
check_conf_use_count(const struct conf *const conf, u_int expected)
sys/security/mac_do/mac_do.c
1305
if (use_count != expected)
sys/security/mac_do/mac_do.c
1307
"expected %u", conf, use_count, expected);
sys/sys/stdatomic.h
254
#define atomic_compare_exchange_strong_explicit(object, expected, \
sys/sys/stdatomic.h
256
__c11_atomic_compare_exchange_strong(object, expected, desired, \
sys/sys/stdatomic.h
258
#define atomic_compare_exchange_weak_explicit(object, expected, \
sys/sys/stdatomic.h
260
__c11_atomic_compare_exchange_weak(object, expected, desired, \
sys/sys/stdatomic.h
281
#define atomic_compare_exchange_strong_explicit(object, expected, \
sys/sys/stdatomic.h
283
__atomic_compare_exchange_n(object, expected, \
sys/sys/stdatomic.h
285
#define atomic_compare_exchange_weak_explicit(object, expected, \
sys/sys/stdatomic.h
287
__atomic_compare_exchange_n(object, expected, \
sys/sys/stdatomic.h
326
#define atomic_compare_exchange_strong_explicit(object, expected, \
sys/sys/stdatomic.h
328
__typeof__(expected) __ep = (expected); \
sys/sys/stdatomic.h
334
#define atomic_compare_exchange_weak_explicit(object, expected, \
sys/sys/stdatomic.h
336
atomic_compare_exchange_strong_explicit(object, expected, \
sys/sys/stdatomic.h
367
#define atomic_compare_exchange_strong(object, expected, desired) \
sys/sys/stdatomic.h
368
atomic_compare_exchange_strong_explicit(object, expected, \
sys/sys/stdatomic.h
370
#define atomic_compare_exchange_weak(object, expected, desired) \
sys/sys/stdatomic.h
371
atomic_compare_exchange_weak_explicit(object, expected, \
tests/sys/audit/utils.h
54
ssize_t expected = (_expected); \
tests/sys/audit/utils.h
56
ATF_REQUIRE_EQ_MSG(expected, _result, "%s: %zd != %zd", #expr, \
tests/sys/audit/utils.h
57
expected, _result); \
tests/sys/capsicum/capsicum-test.h
268
#define AWAIT_INT_MESSAGE(fd, expected) \
tests/sys/capsicum/capsicum-test.h
272
EXPECT_EQ(expected, _msg); \
tests/sys/devrandom/uint128_test.c
104
uint32_t expected[4];
tests/sys/devrandom/uint128_test.c
109
.expected = { 1, 0, 0, 0 },
tests/sys/devrandom/uint128_test.c
114
.expected = { 2, 0, 0, 0 },
tests/sys/devrandom/uint128_test.c
119
.expected = { 0x100, 0, 0, 0 },
tests/sys/devrandom/uint128_test.c
124
.expected = { 0, 1, 0, 0 },
tests/sys/devrandom/uint128_test.c
129
.expected = { 0, 0, 1, 0 },
tests/sys/devrandom/uint128_test.c
134
.expected = { 0, 0, 0, 1 },
tests/sys/devrandom/uint128_test.c
144
vec_u32_tole128(expectedle, tests[i].expected);
tests/sys/devrandom/uint128_test.c
158
uint32_t expected[4];
tests/sys/devrandom/uint128_test.c
164
.expected = { 1, 0, 0, 0 },
tests/sys/devrandom/uint128_test.c
170
.expected = { 0, 1, 0, 0 },
tests/sys/devrandom/uint128_test.c
176
.expected = { 0, 0, 1, 0 },
tests/sys/devrandom/uint128_test.c
182
.expected = { 0x89abcdef, 0x01234567, 1, 0 },
tests/sys/devrandom/uint128_test.c
190
.expected = { 0, 0, 0, 1 },
tests/sys/devrandom/uint128_test.c
200
vec_u32_tole128(expectedle, tests[i].expected);
tests/sys/devrandom/uint128_test.c
217
uint32_t expected[4];
tests/sys/devrandom/uint128_test.c
222
.expected = { 1, 0, 0, 0 },
tests/sys/devrandom/uint128_test.c
227
.expected = { 2, 0, 0, 0 },
tests/sys/devrandom/uint128_test.c
232
.expected = { 0x100, 0, 0, 0 },
tests/sys/devrandom/uint128_test.c
237
.expected = { 0, 1, 0, 0 },
tests/sys/devrandom/uint128_test.c
242
.expected = { 0, 0, 1, 0 },
tests/sys/devrandom/uint128_test.c
247
.expected = { 0, 0, 0, 1 },
tests/sys/devrandom/uint128_test.c
262
vec_u32_tole128(expectedle, tests[i].expected);
tests/sys/fs/fusefs/setattr.cc
451
char *w0buf, *r0buf, *r1buf, *expected;
tests/sys/fs/fusefs/setattr.cc
472
expected = new char[r1_size]();
tests/sys/fs/fusefs/setattr.cc
553
r = memcmp(expected, r1buf, r1_size);
tests/sys/fs/fusefs/setattr.cc
556
delete[] expected;
tests/sys/fs/fusefs/write.cc
745
char *zeros, *expected;
tests/sys/fs/fusefs/write.cc
750
expected = new char[len]();
tests/sys/fs/fusefs/write.cc
751
memmove((uint8_t*)expected + offset, CONTENTS, bufsize);
tests/sys/fs/fusefs/write.cc
760
FuseTest::expect_write(ino, 0, len, len, FUSE_WRITE_CACHE, 0, expected);
tests/sys/fs/fusefs/write.cc
775
delete[] expected;
tests/sys/fs/fusefs/xattr.cc
404
char expected[3] = {3, 'f', 'o'};
tests/sys/fs/fusefs/xattr.cc
422
ASSERT_EQ(0, memcmp(expected, buf, sizeof(buf)));
tests/sys/fs/fusefs/xattr.cc
504
const char expected[4] = {3, 'f', 'o', 'o'};
tests/sys/fs/fusefs/xattr.cc
557
ASSERT_EQ(static_cast<ssize_t>(sizeof(expected)),
tests/sys/fs/fusefs/xattr.cc
733
char expected[9] = {3, 'f', 'o', 'o', 4, 'b', 'a', 'n', 'g'};
tests/sys/fs/fusefs/xattr.cc
750
ASSERT_EQ(static_cast<ssize_t>(sizeof(expected)),
tests/sys/fs/fusefs/xattr.cc
753
ASSERT_EQ(0, memcmp(expected, data, sizeof(expected)));
tests/sys/fs/fusefs/xattr.cc
765
char expected[2] = {1, 'x'};
tests/sys/fs/fusefs/xattr.cc
782
ASSERT_EQ(static_cast<ssize_t>(sizeof(expected)),
tests/sys/fs/fusefs/xattr.cc
785
ASSERT_EQ(0, memcmp(expected, data, sizeof(expected)));
tests/sys/kern/acct/acct_test.c
56
check_result(const char *name, float expected, union cf v)
tests/sys/kern/acct/acct_test.c
60
eps = fabs(expected - v.f) / expected;
tests/sys/kern/acct/acct_test.c
65
v.f = expected;
tests/sys/kern/acct/acct_test.c
66
printf("Expected 0x%08x %12g (%.15lg)\n", v.c, v.f, expected);
tests/sys/kern/ktrace_test.c
64
#define CHILD_REQUIRE_EQ(actual, expected) do { \
tests/sys/kern/ktrace_test.c
65
__typeof__(expected) _e = expected; \
tests/sys/kern/ktrace_test.c
69
" (%jd) == " #expected " (%jd) not met\n", \
tests/sys/kern/libkern_crc32.c
50
check_crc32c(uint32_t expected, uint32_t crc32c, const void *buffer,
tests/sys/kern/libkern_crc32.c
58
ATF_CHECK_EQ_MSG(expected, act,
tests/sys/kern/libkern_crc32.c
59
"sse42_crc32c expected 0x%08x, got 0x%08x", expected, act);
tests/sys/kern/libkern_crc32.c
63
ATF_CHECK_EQ_MSG(expected, act,
tests/sys/kern/libkern_crc32.c
64
"armv8_crc32c expected 0x%08x, got 0x%08x", expected, act);
tests/sys/kern/libkern_crc32.c
67
ATF_CHECK_EQ_MSG(expected, act,
tests/sys/kern/libkern_crc32.c
68
"singletable_crc32c expected 0x%08x, got 0x%08x", expected, act);
tests/sys/kern/libkern_crc32.c
70
ATF_CHECK_EQ_MSG(expected, act,
tests/sys/kern/libkern_crc32.c
71
"multitable_crc32c expected 0x%08x, got 0x%08x", expected, act);
tests/sys/kern/ptrace_test.c
116
#define REQUIRE_EQ(actual, expected) do { \
tests/sys/kern/ptrace_test.c
117
__typeof__(expected) _e = expected; \
tests/sys/kern/ptrace_test.c
120
#expected " (%jd) not met", (intmax_t)_a, (intmax_t)_e); \
tests/sys/kern/ptrace_test.c
90
#define CHILD_REQUIRE_EQ(actual, expected) do { \
tests/sys/kern/ptrace_test.c
91
__typeof__(expected) _e = expected; \
tests/sys/kern/ptrace_test.c
95
" (%jd) == " #expected " (%jd) not met\n", \
tests/sys/kqueue/libkqueue/common.h
51
void _kevent_cmp(struct kevent *expected, struct kevent *got, const char *file, int line);
tests/sys/ses/nondestructive.c
551
unsigned nobj, expected = 0;
tests/sys/ses/nondestructive.c
564
expected += 1 + nelm; // +1 for the Overall element
tests/sys/ses/nondestructive.c
572
ATF_CHECK_EQ(expected, nobj);
tests/sys/ses/nondestructive.c
69
char *expected;
tests/sys/ses/nondestructive.c
76
expected = &line[matches[0].rm_eo];
tests/sys/ses/nondestructive.c
78
elen = strnlen(expected, sizeof(line) - matches[0].rm_eo);
tests/sys/ses/nondestructive.c
79
expected[elen - 1] = '\0';
tests/sys/ses/nondestructive.c
90
if (0 == strcmp("<empty>", expected)) {
tests/sys/ses/nondestructive.c
94
ATF_CHECK_STREQ(expected, actual);
tests/sys/sound/pcm_read_write.c
134
intpcm_t expected, result;
tests/sys/sound/pcm_read_write.c
145
expected = test->value;
tests/sys/sound/pcm_read_write.c
147
ATF_CHECK_MSG(result == expected,
tests/sys/sound/pcm_read_write.c
149
test->label, expected, result);
tests/sys/sound/pcm_read_write.c
152
expected = local_calc_limit(test->value, test->size * 8);
tests/sys/sound/pcm_read_write.c
154
ATF_CHECK_MSG(result == expected,
tests/sys/sound/pcm_read_write.c
156
test->label, expected, result);
tests/sys/sound/pcm_read_write.c
159
expected = local_normalize(test->value, test->size * 8, 32);
tests/sys/sound/pcm_read_write.c
161
ATF_CHECK_MSG(result == expected,
tests/sys/sound/pcm_read_write.c
163
test->label, expected, result);
tests/sys/sound/pcm_read_write.c
176
uint8_t expected[4];
tests/sys/sound/pcm_read_write.c
185
memcpy(expected, test->buffer, sizeof(expected));
tests/sys/sound/pcm_read_write.c
189
ATF_CHECK_MSG(memcmp(dst, expected, sizeof(dst)) == 0,
tests/sys/sound/pcm_read_write.c
193
expected[0], expected[1], expected[2], expected[3],
tests/sys/sound/pcm_read_write.c
197
memcpy(expected, test->buffer, sizeof(expected));
tests/sys/sound/pcm_read_write.c
206
expected[3] = 0x00;
tests/sys/sound/pcm_read_write.c
208
expected[0] = 0x00;
tests/sys/sound/pcm_read_write.c
211
ATF_CHECK_MSG(memcmp(dst, expected, sizeof(dst)) == 0,
tests/sys/sound/pcm_read_write.c
215
expected[0], expected[1], expected[2], expected[3],
tests/sys/sound/pcm_read_write.c
219
memcpy(expected, test->buffer, sizeof(expected));
tests/sys/sound/pcm_read_write.c
223
ATF_CHECK_MSG(memcmp(dst, expected, sizeof(dst)) == 0,
tests/sys/sound/pcm_read_write.c
227
expected[0], expected[1], expected[2], expected[3],
tests/sys/sys/bitstring_test.c
604
int result, s, e, expected;
tests/sys/sys/bitstring_test.c
644
expected = s % 2 == 0 ? (nbits - s) / 2 : (nbits - s + 1) / 2;
tests/sys/sys/bitstring_test.c
646
ATF_CHECK_MSG(expected == result,
tests/sys/sys/time_test.c
101
expected, ms, actual);
tests/sys/sys/time_test.c
123
atf_check_sbttons(int64_t expected, sbintime_t sbt) {
tests/sys/sys/time_test.c
126
ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
tests/sys/sys/time_test.c
128
expected, sbt, actual);
tests/sys/sys/time_test.c
152
atf_check_sbttous(int64_t expected, sbintime_t sbt) {
tests/sys/sys/time_test.c
155
ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
tests/sys/sys/time_test.c
157
expected, sbt, actual);
tests/sys/sys/time_test.c
182
atf_check_sbttoms(int64_t expected, sbintime_t sbt) {
tests/sys/sys/time_test.c
185
ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
tests/sys/sys/time_test.c
187
expected, sbt, actual);
tests/sys/sys/time_test.c
40
atf_check_nstosbt(sbintime_t expected, int64_t ns) {
tests/sys/sys/time_test.c
43
ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
tests/sys/sys/time_test.c
45
expected, ns, actual);
tests/sys/sys/time_test.c
68
atf_check_ustosbt(sbintime_t expected, int64_t us) {
tests/sys/sys/time_test.c
71
ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
tests/sys/sys/time_test.c
73
expected, us, actual);
tests/sys/sys/time_test.c
96
atf_check_mstosbt(sbintime_t expected, int64_t ms) {
tests/sys/sys/time_test.c
99
ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
tools/regression/netinet6/inet6_rth/test_subr.c
105
" : Expected %s, but got %s", expected, got);
tools/regression/netinet6/inet6_rth/test_subr.c
120
checknum(int expected, int got, int cmp, const char *desc)
tools/regression/netinet6/inet6_rth/test_subr.c
135
pass = (got == expected) ? 1 : 0;
tools/regression/netinet6/inet6_rth/test_subr.c
138
pass = (got > expected) ? 1 : 0;
tools/regression/netinet6/inet6_rth/test_subr.c
141
pass = (got < expected) ? 1 : 0;
tools/regression/netinet6/inet6_rth/test_subr.c
151
" : Expected %d, but got %d", expected, got);
tools/regression/netinet6/inet6_rth/test_subr.c
54
checkptr(caddr_t expected, caddr_t got, const char *desc)
tools/regression/netinet6/inet6_rth/test_subr.c
65
if (got == expected) {
tools/regression/netinet6/inet6_rth/test_subr.c
72
(unsigned int)expected, (unsigned int)got);
tools/regression/netinet6/inet6_rth/test_subr.c
87
checkstr(const char *expected, const char *got, size_t explen, const char *desc)
tools/regression/netinet6/inet6_rth/test_subr.c
98
if (strncmp(expected, got, explen) == 0) {
tools/regression/poll/pipepoll.c
56
report(int num, const char *state, int expected, int got, int res,
tools/regression/poll/pipepoll.c
66
if (expected == got)
tools/regression/poll/pipepoll.c
72
printf("expected %s; got %s\n", decode_events(expected),
tools/regression/poll/pipeselect.c
35
report(int num, const char *state, int expected, int got)
tools/regression/poll/pipeselect.c
37
if (!expected == !got)
tools/regression/poll/pipeselect.c
44
state, decode_events(expected), decode_events(got));
tools/regression/poll/sockpoll.c
66
report(int num, const char *state, int expected, int got)
tools/regression/poll/sockpoll.c
71
decode_events(expected, expected_str, sizeof(expected_str));
tools/regression/poll/sockpoll.c
73
if (expected == got)
tools/regression/posixsem/posixsem.c
519
checkvalue(semid_t id, int expected)
tools/regression/posixsem/posixsem.c
527
if (val != expected) {
tools/regression/posixsem/posixsem.c
528
fail_err("sem value should be %d instead of %d", expected, val);
usr.bin/dtc/fdt.cc
899
auto parse_delete = [&](const char *expected, bool at)
usr.bin/dtc/fdt.cc
903
input.parse_error(expected);
usr.bin/fetch/fetch.c
224
off_t received, expected;
usr.bin/fetch/fetch.c
228
expected = xs->size - xs->rcvd;
usr.bin/fetch/fetch.c
229
eta = (long)((double)elapsed * expected / received);
usr.bin/rpcgen/rpc_tblout.c
100
if (current != expected++) {
usr.bin/rpcgen/rpc_tblout.c
108
expected = current + 1;
usr.bin/rpcgen/rpc_tblout.c
81
int expected;
usr.bin/rpcgen/rpc_tblout.c
93
expected = 0;
usr.bin/rpcgen/rpc_tblout.c
95
expected = 1;
usr.bin/tcopy/tcopy.cc
118
tape_dev::verify_blk(void *dst, size_t len, size_t expected)
usr.bin/tcopy/tcopy.cc
120
(void)expected;
usr.bin/tcopy/tcopy.cc
310
ssize_t verify_blk(void *dst, size_t len, size_t expected);
usr.bin/tcopy/tcopy.cc
355
file_set::verify_blk(void *dst, size_t len, size_t expected)
usr.bin/tcopy/tcopy.cc
362
ssize_t retval = read(fd, dst, expected);
usr.bin/tcopy/tcopy.cc
412
ssize_t verify_blk(void *dst, size_t len, size_t expected);
usr.bin/tcopy/tcopy.cc
427
flat_file::verify_blk(void *dst, size_t len, size_t expected)
usr.bin/tcopy/tcopy.cc
430
return (read(fd, dst, expected));
usr.bin/tcopy/tcopy.cc
73
virtual ssize_t verify_blk(void *dst, size_t len, size_t expected);
usr.sbin/bhyve/rfb.c
704
bool expected;
usr.sbin/bhyve/rfb.c
707
expected = false;
usr.sbin/bhyve/rfb.c
708
if (atomic_compare_exchange_strong(&rc->sending, &expected, true) == false)