Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 197) sorted by relevance

12345678

/openssl/test/recipes/
H A D20-test_kdf.t20 expected => '8E:4D:93:25:30:D7:65:A0:AA:E9:74:C3:04:73:5E:CC',
23 expected => '65:6F:31:CB:04:03:D6:51:E2:E8:71:F8:20:04:AB:BA',
26 expected => '2a:c4:36:9f:52:59:96:f8:de:13',
35 expected => '44:f6:76:e8:5c:1b:1a:8b:bc:3d:31:92:18:63:1c:a3',
38 expected => 'a4:62:de:16:a8:9d:e8:46:6e:f5:46:0b:47:b8',
41 expected => '5C:49:94:47:3B:B1:53:3A:58:EB:19:42:04:D3:78:16',
46 expected => '8E:4D:93:25:30:D7:65:A0:AA:E9:74:C3:04:73:5E:CC',
52 expected => '2a:c4:36:9f:52:59:96:f8:de:13',
64 expected => 'a4:62:de:16:a8:9d:e8:46:6e:f5:46:0b:47:b8',
67 expected => '5C:49:94:47:3B:B1:53:3A:58:EB:19:42:04:D3:78:16',
[all …]
H A D20-test_dgst.t163 my $expected = qr/SHA1\(\Q$testdata\E\)= 000102030405060708090a0b0c0d0e0f10111213/;
164 …ok($macdata[0] =~ $expected, "SHA1: Check HASH value is as expected ($macdata[0]) vs ($expected)");
177 …ok($hmacdata[0] =~ $expected, "HMAC: Check HMAC value is as expected ($hmacdata[0]) vs ($expected)…
178 ok($hmacdata[1] =~ $expected,
179 "HMAC: Check second HMAC value is consistent with the first ($hmacdata[1]) vs ($expected)");
191 …ok($hmacdata[0] =~ $expected, "HMAC: Check HMAC value is as expected ($hmacdata[0]) vs ($expected)…
192 ok($hmacdata[1] =~ $expected,
206 …ok($hmacdata[0] =~ $expected, "HMAC: Check HMAC value is as expected ($hmacdata[0]) vs ($expected)…
207 ok($hmacdata[1] =~ $expected,
220 …ok($xofdata[0] =~ $expected, "XOF: Check digest value is as expected ($xofdata[0]) vs ($expected)"…
[all …]
H A D20-test_passwd.t24 expected => '$5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5' },
28 expected => '$5$rounds=10000$saltstringsaltst$3xv.VbSHBb41AL9AvLeujZkZRBAwqFMz2.opqey6IcA' },
32 expected => '$5$rounds=5000$toolongsaltstrin$Un/5jzAHMgOGZ5.mWJpuVolil07guHPvOW8mGRcvxa5' },
36 expected => '$5$rounds=1400$anotherlongsalts$Rx.j8H.h8HjEDGomFU8bDkXm3XIUnzyxf12oP84Bnq1' },
40 expected => '$5$rounds=1000$roundstoolow$yfvwcWrQ8l/K0DAWyuPMDNHpIVlTQebY9l/gL972bIC' },
44expected => '$6$saltstring$svn8UoSVapNtMuq1ukKS4tPQd8iKwSMHWjl/O817G3uBnIFNjnQJuesI68u4OTLiBFdcbYE…
68 expected => '$5$rounds=77777$short$JiO1O3ZpDAxGJeaDIuqCoEFysAe1mZNJRs3pw0KQRd/' },
72expected => '$5$rounds=123456$asaltof16chars..$gP3VQ/6X7UUEW3HkBn2w1/Ptq2jxPyzV/cZKmF/wJvD' },
76expected => '$6$rounds=77777$short$WuQyW2YR.hBNpjjRhpYD/ifIw05xdfeEyQoMxIXbkvr0gge1a1x3yRULJ5CCaUe…
108 $_->{key}], $_->{expected}),
[all …]
H A D20-test_mac.t23 expected => '5FD596EE78D5553C8FF4E72D266DFD192366DA29',
28 expected => '5FD596EE78D5553C8FF4E72D266DFD192366DA29',
33 expected => '00BDA1B7E87608BCBF470F12157F4C07',
38 expected => '00BDA1B7E87608BCBF470F12157F4C07',
43 expected => 'E5780B0D3EA6F7D3A429C5706AA43A00FADBD7D49628839E3187243F456EE14E',
61 expected => 'da87c1d86b99af44347659119b22fc45',
69 expected => 'F62C46329B41085625669BAF51DEA66A',
74 expected => 'F62C46329B41085625669BAF51DEA66A',
82 expected => '03000000000000000000000000000000',
124 ok(compareline($_->{cmd}, $_->{type}, $_->{input}, $_->{expected}, $_->{err}), $_->{desc});
[all …]
H A D20-test_rand_config.t22 expected => ["HASH-DRBG", "digest: 'SHA2-512/256'"],
28 expected => ["HASH-DRBG", "digest: 'SHA3-512'"],
34 expected => ["HMAC-DRBG", "mac: HMAC", "digest: 'SHA3-256'"],
38 expected => ["CTR-DRBG", "cipher: 'AES-128-CTR'"],
40 { expected => ["CTR-DRBG", "cipher: 'AES-256-CTR'"],
48 expected => ["CTR-DRBG", "cipher: 'ARIA-128-CTR'"],
54 expected => ["CTR-DRBG", "cipher: 'ARIA-128-CTR'"],
88 ok(comparelines($_->{expected}), $_->{desc});
H A Dtconversion.pl125 my ($desc, $file, $pattern, $expected) = @_;
126 $expected //= 1;
127 return is(file_contains($file, $pattern), $expected,
128 "$desc should ".($expected ? "" : "not ")."contain '$pattern'");
132 my ($cert, $pattern, $expected, $name) = @_;
135 return test_file_contains(($name ? "$name: " : "").$cert, $out, $pattern, $expected);
168 my ($cert, $expected, $exts, $name) = @_;
172 is(file_n_different_lines($out), $expected, ($name ? "$name: " : "").
173 "$cert '$exts' output should contain $expected different lines");
H A D15-test_gendhparam.t137 my @expected = @{ $test->{expect} };
144 if ($expected[0] eq 'ERROR') {
154 ok(compareline(\@lines, \@expected), $msg);
161 my @expected = @$ref_expected;
163 if (@lines == 0 and $expected[0] eq 'ERROR') {
171 foreach my $ex (@expected) {
H A D81-test_cmp_cli.t62 my $expected = $$_[2];
63 ok($expected == run(app([@app, "-config", '', @$params])),
71 my $expected = $$_[2];
75 ok($expected ==
/openssl/test/
H A Devp_test.c1156 if (expected->aead && !expected->tls_aad) { in cipher_test_enc()
1275 if (expected->aad[0] != NULL && !expected->tls_aad) { in cipher_test_enc()
1421 if (enc && expected->aead && !expected->tls_aad) { in cipher_test_enc()
1755 OBJ_nid2sn(expected->type), expected->alg); in mac_test_run_pkey()
1876 expected->mac_name, expected->alg); in mac_test_run_mac()
2594 if (expected->keyop(expected->ctx, NULL, &got_len, in pkey_test_run()
2600 if (expected->keyop(expected->ctx, got, &got_len, in pkey_test_run()
2621 if (expected->keyop(copy, got, &got_len, expected->input, in pkey_test_run()
3042 expected->iter, expected->md, in pbe_test_run()
3051 expected->N, expected->r, expected->p, in pbe_test_run()
[all …]
H A Dquic_fc_test.c242 #define RX_OP_CHECK_CWM_CONN(expected) \ argument
246 #define RX_OP_CHECK_SWM_CONN(expected) \ argument
270 #define RX_OP_CHECK_CWM(expected) \ argument
271 RX_OP_CHECK_CWM_CONN(expected) \
272 RX_OP_CHECK_CWM_STREAM(0, expected)
273 #define RX_OP_CHECK_SWM(expected) \ argument
274 RX_OP_CHECK_SWM_CONN(expected) \
275 RX_OP_CHECK_SWM_STREAM(0, expected)
276 #define RX_OP_CHECK_RWM(expected) \ argument
277 RX_OP_CHECK_RWM_CONN(expected) \
[all …]
H A Dpoly1305_internal_test.c27 SIZED_DATA expected; member
1513 const unsigned char *expected = test.expected.data; in test_poly1305() local
1514 size_t expectedlen = test.expected.size; in test_poly1305()
1524 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305()
1535 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305()
1549 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305()
1560 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305()
H A Dcmp_client_test.c27 int expected; member
131 if (!TEST_int_eq(status, fixture->expected) in execute_exec_certrequest_ses_test()
188 fixture->expected = OSSL_CMP_PKISTATUS_accepted; in test_exec_IR_ses()
203 fixture->expected = expect; in test_exec_REQ_ses_poll()
377 && TEST_int_eq(fixture->expected, in execute_try_certreq_poll_test()
386 fixture->expected = 1; in test_try_certreq_poll()
403 && TEST_int_eq(fixture->expected, in execute_try_certreq_poll_abort_test()
411 fixture->expected = 1; in test_try_certreq_poll_abort()
446 fixture->expected = expect; in test_exec_GENM_ses()
473 return TEST_int_eq(fixture->expected, res); in execute_exchange_certConf_test()
[all …]
H A Dpkey_meth_kdf_test.c67 const unsigned char expected[sizeof(out)] = { in test_kdf_tls1_prf() local
71 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_tls1_prf()
134 const unsigned char expected[sizeof(out)] = { in test_kdf_hkdf() local
137 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_hkdf()
201 const unsigned char expected[sizeof(out)] = { in test_kdf_scrypt() local
211 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_scrypt()
H A Dcmp_vfy_test.c32 int expected; member
119 fixture->expected = 1; in test_verify_popo()
128 fixture->expected = 0; in test_verify_popo_bad()
198 fixture->expected = 0; in test_validate_msg_mac_alg_protection_bad()
305 fixture->expected = 1; in test_validate_msg_signature_sender_cert_untrusted()
320 fixture->expected = 1; in test_validate_msg_signature_sender_cert_trusted()
334 fixture->expected = 1; in test_validate_msg_signature_sender_cert_extracert()
350 fixture->expected = 0; in test_validate_msg_signature_sender_cert_absent()
365 fixture->expected = expected; in test_validate_with_sender()
390 fixture->expected = 0; in test_validate_msg_unprotected_request()
[all …]
H A Dx509_check_cert_pkey_test.c34 int ret = 0, type = 0, expected = 0, result = 0; in test_x509_check_cert_pkey() local
50 expected = 1; in test_x509_check_cert_pkey()
52 expected = 0; in test_x509_check_cert_pkey()
95 if (!TEST_int_eq(result, expected)) { in test_x509_check_cert_pkey()
96 TEST_error("check private key: expected: %d, got: %d", expected, result); in test_x509_check_cert_pkey()
110 static int expected; /* expected number of certs/CRLs/keys included */ variable
133 return TEST_int_eq(count, expected); in test_PEM_X509_INFO_read_bio()
166 if (!TEST_int_eq(sscanf(num, "%d", &expected), 1)) in setup_tests()
H A Dkeymgmt_internal_test.c161 static BN_ULONG expected[] = { in test_pass_rsa() local
181 || !TEST_true(BN_set_word(bn1, expected[N])) in test_pass_rsa()
183 || !TEST_true(BN_set_word(bn2, expected[E])) in test_pass_rsa()
185 || !TEST_true(BN_set_word(bn3, expected[D])) in test_pass_rsa()
190 || !TEST_true(BN_set_word(bn1, expected[P])) in test_pass_rsa()
192 || !TEST_true(BN_set_word(bn2, expected[Q])) in test_pass_rsa()
197 || !TEST_true(BN_set_word(bn1, expected[DP])) in test_pass_rsa()
199 || !TEST_true(BN_set_word(bn2, expected[DQ])) in test_pass_rsa()
201 || !TEST_true(BN_set_word(bn3, expected[QINV])) in test_pass_rsa()
248 for (i = 0; i < OSSL_NELEM(expected); i++) { in test_pass_rsa()
[all …]
H A Dcmp_msg_test.c28 int expected; member
152 fixture->expected = 1; in test_cmp_create_ir_protection_set()
170 fixture->expected = 0; in test_cmp_create_ir_protection_fails()
187 fixture->expected = 0; in test_cmp_create_cr_without_key()
197 fixture->expected = 1; in test_cmp_create_cr()
211 fixture->expected = 0; in test_cmp_create_certreq_with_invalid_bodytype()
229 fixture->expected = 1; in test_cmp_create_p10cr()
246 fixture->expected = 0; in test_cmp_create_p10cr_null()
260 fixture->expected = 1; in test_cmp_create_kur()
275 fixture->expected = 0; in test_cmp_create_kur_without_oldcert()
[all …]
H A Dsiphash_internal_test.c27 SIZED_DATA expected; member
176 unsigned char *expected = test.expected.data; in test_siphash() local
177 size_t expectedlen = test.expected.size; in test_siphash()
203 || !TEST_mem_eq(out, expectedlen, expected, expectedlen)) in test_siphash()
215 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_siphash()
232 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_siphash()
246 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_siphash()
H A Dcmp_hdr_test.c18 int expected; member
63 fixture->expected = 1; in test_HDR_set_get_pvno()
103 fixture->expected = 1; in test_HDR_get0_senderNonce()
137 fixture->expected = 1; in test_HDR_set1_sender()
171 fixture->expected = 1; in test_HDR_set1_recipient()
209 fixture->expected = 1; in test_HDR_update_messageTime()
239 fixture->expected = 1; in test_HDR_set1_senderKID()
270 fixture->expected = 1; in test_HDR_push0_freeText()
304 fixture->expected = 1; in test_HDR_push1_freeText()
331 fixture->expected = 1; in test_HDR_generalInfo_push0_item()
[all …]
H A Dcmp_asn_test.c18 int expected; member
74 fixture->expected = 1; in test_cmp_asn1_get_int()
82 if (!TEST_int_eq(fixture->expected, in execute_CMP_ASN1_OCTET_STRING_set1_test()
86 if (fixture->expected != 0) in execute_CMP_ASN1_OCTET_STRING_set1_test()
95 fixture->expected = 1; in test_ASN1_OCTET_STRING_set()
110 fixture->expected = 1; in test_ASN1_OCTET_STRING_set_tgt_is_src()
H A Dasn1_encode_test.c495 if (expected->success == 0) { in do_decode()
503 && memcmp(enctst, expected, expected_size) == 0) in do_decode()
533 || memcmp(data, expected, expected_len) != 0) { in do_encode()
696 unsigned char *expected = NULL; in do_encode_custom() local
703 ret = do_encode(input, expected, expected_length, package); in do_encode_custom()
704 OPENSSL_free(expected); in do_encode_custom()
744 EXPECTED *expected in test_intern() local
749 if (expected->success) { in test_intern()
772 if (expected->success) { in test_intern()
797 EXPECTED *expected in test_intern() local
[all …]
H A Dbio_readbuffer_test.c31 char expected[4096]; in test_readbuffer_file_bio() local
36 || !TEST_int_eq(BIO_read_ex(in, expected, sizeof(expected), in test_readbuffer_file_bio()
38 || !TEST_int_lt(readbytes, sizeof(expected))) in test_readbuffer_file_bio()
84 if (!TEST_mem_eq(buf, bytes, expected + count, bytes)) in test_readbuffer_file_bio()
H A DREADME.ssltest.md63 * ExpectedResult - expected handshake outcome. One of
69 * ExpectedClientAlert, ExpectedServerAlert - expected alert. See
76 * ExpectedProtocol - expected negotiated protocol. One of
79 * SessionTicketExpected - whether or not a session ticket is expected
81 - Yes - a session ticket is expected
82 - No - a session ticket is not expected
84 * SessionIdExpected - whether or not a session id is expected
86 - Yes - a session id is expected
87 - No - a session id is not expected
100 * ExpectedServerSignHash, ExpectedClientSignHash - the expected
[all …]
/openssl/apps/lib/
H A Dengine_loader.c41 int expected; member
104 static int engine_expect(OSSL_STORE_LOADER_CTX *ctx, int expected) in engine_expect() argument
106 if (expected == 0 in engine_expect()
107 || expected == OSSL_STORE_INFO_PUBKEY in engine_expect()
108 || expected == OSSL_STORE_INFO_PKEY) { in engine_expect()
109 ctx->expected = expected; in engine_expect()
123 if (ctx->expected == 0 in engine_load()
124 || ctx->expected == OSSL_STORE_INFO_PKEY) in engine_load()
128 if ((pkey == NULL && ctx->expected == 0) in engine_load()
129 || ctx->expected == OSSL_STORE_INFO_PUBKEY) in engine_load()
/openssl/util/
H A Dc-compress-test.pl43 my $expected = $_->[1];
51 if ($got ne $expected) {
52 print "MISMATCH:\n", diff \$expected, \$got;

Completed in 76 milliseconds

12345678