/openssl-master/test/recipes/ |
A D | 20-test_kdf.t | 20 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 …]
|
A D | 20-test_dgst.t | 115 …ok($hmacdata[0] =~ $expected, "HMAC: Check HMAC value is as expected ($hmacdata[0]) vs ($expected)… 116 ok($hmacdata[1] =~ $expected, 117 "HMAC: Check second HMAC value is consistent with the first ($hmacdata[1]) vs ($expected)"); 129 …ok($hmacdata[0] =~ $expected, "HMAC: Check HMAC value is as expected ($hmacdata[0]) vs ($expected)… 130 ok($hmacdata[1] =~ $expected, 131 "HMAC: Check second HMAC value is consistent with the first ($hmacdata[1]) vs ($expected)"); 144 …ok($hmacdata[0] =~ $expected, "HMAC: Check HMAC value is as expected ($hmacdata[0]) vs ($expected)… 145 ok($hmacdata[1] =~ $expected, 146 "HMAC: Check second HMAC value is consistent with the first ($hmacdata[1]) vs ($expected)"); 158 …ok($xofdata[0] =~ $expected, "XOF: Check digest value is as expected ($xofdata[0]) vs ($expected)"… [all …]
|
A D | 20-test_passwd.t | 24 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' }, 44 …expected => '$6$saltstring$svn8UoSVapNtMuq1ukKS4tPQd8iKwSMHWjl/O817G3uBnIFNjnQJuesI68u4OTLiBFdcbYE… 68 expected => '$5$rounds=77777$short$JiO1O3ZpDAxGJeaDIuqCoEFysAe1mZNJRs3pw0KQRd/' }, 72 … expected => '$5$rounds=123456$asaltof16chars..$gP3VQ/6X7UUEW3HkBn2w1/Ptq2jxPyzV/cZKmF/wJvD' }, 76 …expected => '$6$rounds=77777$short$WuQyW2YR.hBNpjjRhpYD/ifIw05xdfeEyQoMxIXbkvr0gge1a1x3yRULJ5CCaUe… 108 $_->{key}], $_->{expected}), [all …]
|
A D | 20-test_mac.t | 23 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 …]
|
A D | 20-test_rand_config.t | 22 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});
|
A D | 15-test_gendhparam.t | 137 my @expected = @{ $test->{expect} }; 146 ok(compareline(\@lines, \@expected), $msg); 153 my @expected = @$ref_expected; 155 if (@lines == 0 and $expected[0] eq 'ERROR') { 163 foreach my $ex (@expected) {
|
A D | tconversion.pl | 124 my $expected = shift @_; 128 is(file_contains($out, $pattern), $expected, ($name ? "$name: " : ""). 129 "$cert should ".($expected ? "" : "not ")."contain: \"$pattern\""); 148 my $expected = shift @_; 154 is(file_n_different_lines($out), $expected, ($name ? "$name: " : ""). 155 "$cert '$exts' output should contain $expected different lines");
|
A D | 81-test_cmp_cli.t | 62 my $expected = $$_[2]; 63 ok($expected == run(app([@app, "-config", '', @$params])), 71 my $expected = $$_[2]; 75 ok($expected ==
|
/openssl-master/test/ |
A D | evp_test.c | 767 if (expected->aead && !expected->tls_aad) { in cipher_test_enc() 863 if (expected->aad[0] != NULL && !expected->tls_aad) { in cipher_test_enc() 972 if (enc && expected->aead && !expected->tls_aad) { in cipher_test_enc() 1296 OBJ_nid2sn(expected->type), expected->alg); in mac_test_run_pkey() 1403 expected->mac_name, expected->alg); in mac_test_run_mac() 1706 if (expected->keyop(expected->ctx, NULL, &got_len, in pkey_test_run() 1712 if (expected->keyop(expected->ctx, got, &got_len, in pkey_test_run() 1737 if (expected->keyop(copy, got, &got_len, expected->input, in pkey_test_run() 2072 expected->iter, expected->md, in pbe_test_run() 2081 expected->N, expected->r, expected->p, in pbe_test_run() [all …]
|
A D | pkey_meth_kdf_test.c | 54 const unsigned char expected[sizeof(out)] = { in test_kdf_tls1_prf() local 58 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_tls1_prf() 108 const unsigned char expected[sizeof(out)] = { in test_kdf_hkdf() local 111 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_hkdf() 175 const unsigned char expected[sizeof(out)] = { in test_kdf_scrypt() local 185 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_scrypt()
|
A D | poly1305_internal_test.c | 27 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()
|
A D | cmp_client_test.c | 27 int expected; member 128 fixture->expected = 1; in test_exec_RR_ses() 141 fixture->expected = 0; in test_exec_RR_ses_receive_error() 150 fixture->expected = 1; in test_exec_IR_ses() 164 fixture->expected = 1; in test_exec_IR_ses_poll() 178 fixture->expected = 0; in test_exec_IR_ses_poll_timeout() 191 fixture->expected = 1; in test_exec_CR_ses() 200 fixture->expected = 1; in test_exec_CR_ses_implicit_confirm() 212 fixture->expected = 1; in test_exec_KUR_ses() 223 fixture->expected = 1; in test_exec_P10CR_ses() [all …]
|
A D | keymgmt_internal_test.c | 157 static BN_ULONG expected[] = { in test_pass_rsa() local 177 || !TEST_true(BN_set_word(bn1, expected[N])) in test_pass_rsa() 179 || !TEST_true(BN_set_word(bn2, expected[E])) in test_pass_rsa() 181 || !TEST_true(BN_set_word(bn3, expected[D])) in test_pass_rsa() 186 || !TEST_true(BN_set_word(bn1, expected[P])) in test_pass_rsa() 188 || !TEST_true(BN_set_word(bn2, expected[Q])) in test_pass_rsa() 193 || !TEST_true(BN_set_word(bn1, expected[DP])) in test_pass_rsa() 195 || !TEST_true(BN_set_word(bn2, expected[DQ])) in test_pass_rsa() 197 || !TEST_true(BN_set_word(bn3, expected[QINV])) in test_pass_rsa() 244 for (i = 0; i < OSSL_NELEM(expected); i++) { in test_pass_rsa() [all …]
|
A D | cmp_vfy_test.c | 32 int expected; member 110 fixture->expected = 1; in test_verify_popo() 119 fixture->expected = 0; in test_verify_popo_bad() 153 fixture->expected = 1; in test_validate_msg_mac_alg_protection() 173 fixture->expected = 0; in test_validate_msg_mac_alg_protection_bad() 235 fixture->expected = 0; in test_validate_msg_signature_srvcert_wrong() 274 fixture->expected = 1; in test_validate_msg_signature_sender_cert_untrusted() 288 fixture->expected = 1; in test_validate_msg_signature_sender_cert_trusted() 302 fixture->expected = 1; in test_validate_msg_signature_sender_cert_extracert() 330 fixture->expected = expected; in test_validate_with_sender() [all …]
|
A D | x509_check_cert_pkey_test.c | 34 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() 118 int expected = 0; in test_PEM_X509_INFO_read_bio() local 124 sscanf(num, "%d", &expected); in test_PEM_X509_INFO_read_bio() 135 return TEST_int_eq(count, expected); in test_PEM_X509_INFO_read_bio()
|
A D | cmp_msg_test.c | 28 int expected; member 151 fixture->expected = 1; in test_cmp_create_ir_protection_set() 169 fixture->expected = 0; in test_cmp_create_ir_protection_fails() 186 fixture->expected = 0; in test_cmp_create_cr_without_key() 196 fixture->expected = 1; in test_cmp_create_cr() 210 fixture->expected = 0; in test_cmp_create_certreq_with_invalid_bodytype() 228 fixture->expected = 1; in test_cmp_create_p10cr() 245 fixture->expected = 0; in test_cmp_create_p10cr_null() 259 fixture->expected = 1; in test_cmp_create_kur() 274 fixture->expected = 0; in test_cmp_create_kur_without_oldcert() [all …]
|
A D | siphash_internal_test.c | 27 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()
|
A D | cmp_hdr_test.c | 18 int expected; member 63 fixture->expected = 1; in test_HDR_set_get_pvno() 98 fixture->expected = 1; in test_HDR_get0_senderNonce() 127 fixture->expected = 1; in test_HDR_set1_sender() 157 fixture->expected = 1; in test_HDR_set1_recipient() 195 fixture->expected = 1; in test_HDR_update_messageTime() 225 fixture->expected = 1; in test_HDR_set1_senderKID() 256 fixture->expected = 1; in test_HDR_push0_freeText() 289 fixture->expected = 1; in test_HDR_push1_freeText() 316 fixture->expected = 1; in test_HDR_generalInfo_push0_item() [all …]
|
A D | cmp_asn_test.c | 18 int expected; member 59 fixture->expected = 1; in test_cmp_asn1_get_int() 67 if (!TEST_int_eq(fixture->expected, in execute_CMP_ASN1_OCTET_STRING_set1_test() 71 if (fixture->expected != 0) in execute_CMP_ASN1_OCTET_STRING_set1_test() 80 fixture->expected = 1; in test_ASN1_OCTET_STRING_set() 95 fixture->expected = 1; in test_ASN1_OCTET_STRING_set_tgt_is_src()
|
A D | asn1_encode_test.c | 495 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() 745 EXPECTED *expected in test_intern() local 750 if (expected->success) { in test_intern() 773 if (expected->success) { in test_intern() 798 EXPECTED *expected in test_intern() local [all …]
|
A D | evp_kdf_test.c | 75 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_tls1_prf() 235 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_hkdf() 534 || !TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) in test_kdf_pbkdf1() 591 || !TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) in test_kdf_pbkdf2() 845 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_scrypt() 884 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_ss_hash() 937 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_x963() 1392 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_ss_hmac() 1436 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_ss_kmac() 1493 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_sshkdf() [all …]
|
A D | bio_readbuffer_test.c | 31 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()
|
/openssl-master/apps/lib/ |
A D | engine_loader.c | 40 int expected; member 105 static int engine_expect(OSSL_STORE_LOADER_CTX *ctx, int expected) in engine_expect() argument 107 if (expected == 0 in engine_expect() 108 || expected == OSSL_STORE_INFO_PUBKEY in engine_expect() 109 || expected == OSSL_STORE_INFO_PKEY) { in engine_expect() 110 ctx->expected = expected; in engine_expect() 124 if (ctx->expected == 0 in engine_load() 125 || ctx->expected == OSSL_STORE_INFO_PKEY) in engine_load() 129 if ((pkey == NULL && ctx->expected == 0) in engine_load() 130 || ctx->expected == OSSL_STORE_INFO_PUBKEY) in engine_load()
|
/openssl-master/test/recipes/80-test_cmp_http_data/ |
A D | test_verification.csv | 1 expected,description, -section,val, -recipient,val, -expect_sender,val, -srvcert,val, -trusted,val,… 12 1,config default with expected sender, -section,, -recipient,_CA_DN, -expect_sender,_SERVER_DN,BLAN… 13 0,expected sender missing arg, -section,, -recipient,_CA_DN, -expect_sender,,BLANK,, -trusted,trust… 14 0,wrong expected sender, -section,, -recipient,_CA_DN, -expect_sender,/CN=Sample Cert/OU=R&D/O=Comp… 15 1,unknown attribute in expected sender, -section,, -recipient,_CA_DN, -expect_sender,_SERVER_DN/ABC… 16 0,extra attribute in expected sender, -section,, -recipient,_CA_DN, -expect_sender,_SERVER_DN/seria… 17 0,double attribute in expected sender, -section,, -recipient,_CA_DN, -expect_sender,/CN=ECC Issuing… 18 0,missing attribute in expected sender, -section,, -recipient,_CA_DN, -expect_sender,/CN=ECC Issuin… 19 0,bad syntax in expected sender name: leading double '/', -section,, -recipient,_CA_DN, -expect_sen… 20 0,bad syntax in expected sender name: trailing double '/', -section,, -recipient,_CA_DN, -expect_se… [all …]
|
/openssl-master/util/ |
A D | c-compress-test.pl | 43 my $expected = $_->[1]; 51 if ($got ne $expected) { 52 print "MISMATCH:\n", diff \$expected, \$got;
|