Home
last modified time | relevance | path

Searched refs:key2 (Results 1 - 25 of 308) sorted by relevance

12345678910>>...13

/third_party/curl/tests/unit/
H A Dunit1603.c56 char key2[] = "key2b"; variable
67 Curl_hash_str(key2, strlen(key2), slots) != 0 ||
78 nodep = Curl_hash_add(&hash_static, &key2, strlen(key2), &key2);
80 nodep = Curl_hash_pick(&hash_static, &key2, strlen(key2));
81 fail_unless(nodep == key2, "hash retrieval failed");
97 nodep = Curl_hash_pick(&hash_static, &key2, strle
[all...]
/third_party/node/deps/openssl/openssl/crypto/des/
H A Dstr2key.c46 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2) in DES_string_to_2keys() argument
52 memset(key2, 0, 8); in DES_string_to_2keys()
61 (*key2)[i % 8] ^= (j << 1); in DES_string_to_2keys()
69 (*key2)[7 - (i % 8)] ^= j; in DES_string_to_2keys()
73 memcpy(key2, key1, 8); in DES_string_to_2keys()
75 DES_set_odd_parity(key2); in DES_string_to_2keys()
78 DES_set_key_unchecked(key2, &ks); in DES_string_to_2keys()
79 DES_cbc_cksum((const unsigned char *)str, key2, length, &ks, key2); in DES_string_to_2keys()
82 DES_set_odd_parity(key2); in DES_string_to_2keys()
[all...]
/third_party/openssl/crypto/des/
H A Dstr2key.c46 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2) in DES_string_to_2keys() argument
52 memset(key2, 0, 8); in DES_string_to_2keys()
61 (*key2)[i % 8] ^= (j << 1); in DES_string_to_2keys()
69 (*key2)[7 - (i % 8)] ^= j; in DES_string_to_2keys()
73 memcpy(key2, key1, 8); in DES_string_to_2keys()
75 DES_set_odd_parity(key2); in DES_string_to_2keys()
78 DES_set_key_unchecked(key2, &ks); in DES_string_to_2keys()
79 DES_cbc_cksum((const unsigned char *)str, key2, length, &ks, key2); in DES_string_to_2keys()
82 DES_set_odd_parity(key2); in DES_string_to_2keys()
[all...]
/third_party/selinux/libsepol/cil/src/
H A Dcil_symtab.c154 intptr_t sum = ckey->key1 + ckey->key2 + ckey->key3 + ckey->key4; in cil_complex_symtab_hash()
187 ckey->key2 == curr->ckey->key2 && in cil_complex_symtab_insert()
195 ckey->key2 < curr->ckey->key2) { in cil_complex_symtab_insert()
200 ckey->key2 == curr->ckey->key2 && in cil_complex_symtab_insert()
206 ckey->key2 == curr->ckey->key2 && in cil_complex_symtab_insert()
236 ckey->key2 in cil_complex_symtab_search()
[all...]
/third_party/ffmpeg/libavutil/tests/
H A Dhmac.c46 static const uint8_t key2[] = "Jefe"; in main() local
65 test(hmac, key2, sizeof(key2), data2, sizeof(data2)); in main()
79 test(hmac, key2, sizeof(key2), data2, sizeof(data2)); in main()
/third_party/openssl/test/
H A Digetest.c82 const unsigned char key2[32]; member
95 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f}, /* key2 */
120 0x67, 0x7b, 0x58, 0xa8, 0x18, 0xf9, 0x72, 0xe4}, /* key2 */
195 AES_KEY key2; in test_bi_ige_vectors() local
203 AES_set_encrypt_key(v->key2, 8 * v->keysize, &key2); in test_bi_ige_vectors()
206 AES_set_decrypt_key(v->key2, 8 * v->keysize, &key2); in test_bi_ige_vectors()
209 AES_bi_ige_encrypt(v->in, buf, v->length, &key1, &key2, v->iv, in test_bi_ige_vectors()
214 test_output_memory("key 2", v->key2, sizeo in test_bi_ige_vectors()
329 AES_KEY key, key2; test_bi_ige_enc_dec() local
350 AES_KEY key, key2; test_bi_ige_garble1() local
381 AES_KEY key, key2; test_bi_ige_garble2() local
412 AES_KEY key, key2; test_bi_ige_garble3() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_rd_single_ver_natural_store_testcase.cpp97 Key key2 = key1; in SyncDatabaseOperate006() local
98 key2.push_back('C'); in SyncDatabaseOperate006()
108 EXPECT_EQ(connection->Put(option, key2, value2), E_OK); in SyncDatabaseOperate006()
199 * whose key2(!=key1) is not empty, and value is empty. in DataBaseCommonPutOperate()
202 Key key2; in DataBaseCommonPutOperate() local
203 DistributedDBToolsUnitTest::GetRandomKeyValue(key2, static_cast<int>(key1.size() + 1)); in DataBaseCommonPutOperate()
204 EXPECT_EQ(connection->Put(option, key2, emptyValue), E_OK); in DataBaseCommonPutOperate()
207 * @tc.steps: step8. Set option to local data, obtain the value of key2, in DataBaseCommonPutOperate()
211 EXPECT_EQ(connection->Get(option, key2, valueRead), E_OK); in DataBaseCommonPutOperate()
317 Key key2; in DataBaseCommonGetOperate() local
[all...]
/third_party/node/deps/openssl/openssl/include/crypto/
H A Daes_platform.h41 const AES_KEY *key2, const unsigned char iv[16]);
44 const AES_KEY *key2, const unsigned char iv[16]);
55 const AES_KEY *key1, const AES_KEY *key2,
58 const AES_KEY *key1, const AES_KEY *key2,
196 const AES_KEY *key1, const AES_KEY *key2,
202 const AES_KEY *key1, const AES_KEY *key2,
293 const AES_KEY *key2, const unsigned char *ivec);
296 const AES_KEY *key2, const unsigned char *ivec);
299 const AES_KEY *key2, const unsigned char *ivec);
302 const AES_KEY *key2, cons
[all...]
/third_party/openssl/include/crypto/
H A Daes_platform.h41 const AES_KEY *key2, const unsigned char iv[16]);
44 const AES_KEY *key2, const unsigned char iv[16]);
55 const AES_KEY *key1, const AES_KEY *key2,
58 const AES_KEY *key1, const AES_KEY *key2,
196 const AES_KEY *key1, const AES_KEY *key2,
202 const AES_KEY *key1, const AES_KEY *key2,
293 const AES_KEY *key2, const unsigned char *ivec);
296 const AES_KEY *key2, const unsigned char *ivec);
299 const AES_KEY *key2, const unsigned char *ivec);
302 const AES_KEY *key2, cons
[all...]
/third_party/skia/tests/
H A DImageFilterCacheTest.cpp48 SkImageFilterCacheKey key2(0, SkMatrix::I(), clip, subset->uniqueID(), subset->subset()); in test_find_existing()
58 REPORTER_ASSERT(reporter, !cache->get(key2, &foundImage)); in test_find_existing()
73 SkImageFilterCacheKey key2(0, SkMatrix::Translate(5, 5), clip1, in test_dont_find_if_diff_key()
84 REPORTER_ASSERT(reporter, !cache->get(key2, &foundImage)); in test_dont_find_if_diff_key()
97 SkImageFilterCacheKey key2(1, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge()
108 cache->set(key2, filter2.get(), in test_internal_purge()
111 REPORTER_ASSERT(reporter, cache->get(key2, &foundImage)); in test_internal_purge()
124 SkImageFilterCacheKey key2(1, SkMatrix::I(), clip, subset->uniqueID(), image->subset()); in test_explicit_purging()
131 cache->set(key2, filter2.get(), in test_explicit_purging()
137 REPORTER_ASSERT(reporter, cache->get(key2, in test_explicit_purging()
[all...]
/test/xts/acts/startup_lite/syspara_posix/src/
H A DParameterTest.cpp101 char key2[] = "rw.sys.version.version"; in HWTEST_F() local
103 ret = SetParameter(key2, value2); in HWTEST_F()
150 char key2[] = "rw.sys.version.version.version.version.version.version.version.version.version.version.version.v1"; in HWTEST_F() local
152 ret = SetParameter(key2, value2); in HWTEST_F()
185 char key2[] = "rw.sys.version.version"; in HWTEST_F() local
187 ret = SetParameter(key2, value2); in HWTEST_F()
244 char key2[] = "rw.sys.version.version"; in HWTEST_F() local
247 ret = GetParameter(key2, defSysParam.c_str(), value2, StartUpLite::MAX_LEN); in HWTEST_F()
/foundation/ability/ability_runtime/test/fuzztest/abilityautostartupdatamanagerb_fuzzer/
H A Dabilityautostartupdatamanagerb_fuzzer.cpp95 DistributedKv::Key key2(jsonKey2); in AbilityAutoStartupDataManagerFuzztest1()
99 dataMgr->ConvertAutoStartupInfoFromKeyAndValue(key2, value2); in AbilityAutoStartupDataManagerFuzztest1()
100 dataMgr->ConvertAutoStartupInfoFromKeyAndValue(key2, value2Illegal); in AbilityAutoStartupDataManagerFuzztest1()
101 dataMgr->ConvertAutoStartupInfoFromKeyAndValue(key2, value3); in AbilityAutoStartupDataManagerFuzztest1()
113 dataMgr->IsEqual(key2, info); in AbilityAutoStartupDataManagerFuzztest1()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Ddata_share_subscriber_managers_test.cpp128 DataShare::Key key2(DATA_SHARE_URI_TEST, 0, BUNDLE_NAME_TEST); in HWTEST_F()
130 EXPECT_FALSE(key1 < key2); in HWTEST_F()
131 EXPECT_TRUE(key2 < key1); in HWTEST_F()
226 DataShare::PublishedDataKey key2(DATA_SHARE_URI_TEST, "ohos.error.demo", TEST_SUB_ID); in HWTEST_F()
228 EXPECT_FALSE(key1 < key2); in HWTEST_F()
229 EXPECT_TRUE(key2 < key1); in HWTEST_F()
/third_party/json/tests/src/
H A Dunit-element_access2.cpp1546 const char* key2 = "baz"; variable
1553 CHECK(j.value(key2, 0) == 42);
1554 CHECK(j.value(key2, 47) == 42);
1555 CHECK(j.value(key2, integer) == 42);
1556 CHECK(j.value(key2, size) == 42);
1571 const char key2[] = "baz"; // NOLINT(hicpp-avoid-c-arrays,modernize-avoid-c-arrays,cppcoreguidelines-avoid-c-arrays) variable
1578 CHECK(j.value(key2, 0) == 42);
1579 CHECK(j.value(key2, 47) == 42);
1580 CHECK(j.value(key2, integer) == 42);
1581 CHECK(j.value(key2, siz
1596 string_t key2 = "baz"; global() variable
1622 std::string_view key2 = "baz"; global() variable
1676 const char* key2 = "baz"; global() variable
1705 const char key2[] = "baz"; // NOLINT(hicpp-avoid-c-arrays,modernize-avoid-c-arrays,cppcoreguidelines-avoid-c-arrays) global() variable
1734 string_t key2 = "baz"; global() variable
1760 std::string_view key2 = "baz"; global() variable
[all...]
/third_party/ltp/testcases/kernel/syscalls/request_key/
H A Drequest_key02.c29 static int key2; variable
38 {"ltp2", EKEYREVOKED, &key2},
91 key2 = init_key("ltp2", KEYCTL_REVOKE); in setup()
/third_party/node/test/parallel/
H A Dtest-crypto-dh.js15 const key2 = dh2.generateKeys('hex');
16 const secret1 = dh1.computeSecret(key2, 'hex', 'base64');
38 const secret3 = dh3.computeSecret(key2, 'hex', 'base64');
51 const secret4 = dh4.computeSecret(key2, 'hex', 'base64');
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/
H A Ddefault_client.c112 int SAMGR_CompareSAName(const SaName *key1, const SaName *key2) in SAMGR_CompareSAName() argument
114 if (key1 == key2) { in SAMGR_CompareSAName()
118 if (key1->service != key2->service) { in SAMGR_CompareSAName()
119 int ret = strcmp(key1->service, key2->service); in SAMGR_CompareSAName()
125 if (key1->feature == key2->feature) { in SAMGR_CompareSAName()
133 if (key2->feature == NULL) { in SAMGR_CompareSAName()
137 return strcmp(key1->feature, key2->feature); in SAMGR_CompareSAName()
H A Ddefault_client_rpc.c106 int SAMGR_CompareSAName(const SaName *key1, const SaName *key2) in SAMGR_CompareSAName() argument
108 if (key1 == key2) { in SAMGR_CompareSAName()
112 if (key1->service != key2->service) { in SAMGR_CompareSAName()
113 int ret = strcmp(key1->service, key2->service); in SAMGR_CompareSAName()
119 if (key1->feature == key2->feature) { in SAMGR_CompareSAName()
127 if (key2->feature == NULL) { in SAMGR_CompareSAName()
131 return strcmp(key1->feature, key2->feature); in SAMGR_CompareSAName()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/
H A Dsha256.c114 FILLP_UINT32 key2; in FillpSha256Compile() local
130 key2 = ((FILLP_UINT32)(index + 1)) & FILLP_SHAWK_ARRAY_SZ_MOD; in FillpSha256Compile()
132 buf[key3] += FILLP_G_1(buf[key0]) + buf[key1] + FILLP_G_0(buf[key2]); in FillpSha256Compile()
146 key2 = ((FILLP_UINT32)(FILLP_SHA_FIVE_PAR - index)) & FILLP_HASH_ARRAY_SZ_MOD; in FillpSha256Compile()
148 hash[key0] += FILLP_CH(hash[key1], hash[key2], hash[key3]); in FillpSha256Compile()
156 key2 = ((FILLP_UINT32)(1 - index)) & FILLP_HASH_ARRAY_SZ_MOD; in FillpSha256Compile()
158 hash[key0] += FILLP_MAJ(hash[key1], hash[key2], hash[key3]); in FillpSha256Compile()
/foundation/communication/netmanager_base/test/netsysbpfstats/unittest/netsys_bpf_stats_test/
H A Dnetsys_bpf_stats_test.cpp257 app_uid_if_stats_key key2 = {0}; in HWTEST_F() local
258 key2.ifIndex = TEST_UID_IF2; in HWTEST_F()
259 key2.uId = TEST_UID2; in HWTEST_F()
260 ret = uidIfaceStatsMap.Write(key2, value, BPF_ANY); in HWTEST_F()
336 app_uid_if_stats_key key2 = {0}; in HWTEST_F() local
337 key2.ifIndex = TEST_UID_IF2; in HWTEST_F()
338 key2.uId = TEST_UID2; in HWTEST_F()
339 ret = uidIfStatsMap.Write(key2, value, BPF_ANY); in HWTEST_F()
363 app_uid_sim_stats_key key2 = {0}; in HWTEST_F() local
364 key2 in HWTEST_F()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Ddistributeddb_single_ver_p2p_complex_sync_test.cpp81 Key key2 = {'2'}; in PullSyncTest() local
84 g_deviceB->PutData(key2, value, 1, 0); in PullSyncTest()
98 EXPECT_EQ(g_kvDelegatePtr->Get(key2, value3), OK); in PullSyncTest()
699 Key key2 = {'2'}; in HWTEST_F() local
701 ASSERT_TRUE(g_kvDelegatePtr->Put(key2, value2) == OK); in HWTEST_F()
741 g_deviceC->GetData(key2, item); in HWTEST_F()
780 Key key2 = {'2'}; in HWTEST_F() local
782 g_deviceC->PutData(key2, value2, 0, 0); in HWTEST_F()
815 g_kvDelegatePtr->Get(key2, value5); in HWTEST_F()
911 Key key2 in HWTEST_F() local
1372 Key key2 = {'2'}; HWTEST_F() local
1441 Key key2 = {'2'}; HWTEST_F() local
1515 Key key2 = {'2'}; HWTEST_F() local
1588 Key key2 = {'2'}; HWTEST_F() local
1647 Key key2 = {'3'}; HWTEST_F() local
1702 Key key2 = {'3'}; HWTEST_F() local
1759 Key key2 = {'2'}; HWTEST_F() local
1901 Key key2 = {'3'}; HWTEST_F() local
[all...]
H A Ddistributeddb_single_ver_p2p_simple_sync_test.cpp374 Key key2 = {'2'}; in HWTEST_F() local
376 g_deviceC->PutData(key2, value2, 0, 0); in HWTEST_F()
400 EXPECT_EQ(g_kvDelegatePtr->Get(key2, value3), OK); in HWTEST_F()
425 Key key2 = {'2'}; in HWTEST_F() local
427 status = g_kvDelegatePtr->Put(key2, value2); in HWTEST_F()
443 g_deviceC->PutData(key2, value4, in HWTEST_F()
467 g_kvDelegatePtr->Get(key2, value5); in HWTEST_F()
487 Key key2 = {'2'}; in HWTEST_F() local
489 status = g_kvDelegatePtr->Put(key2, value2); in HWTEST_F()
504 DistributedDBToolsUnitTest::CalcHash(key2, hashKey in HWTEST_F()
560 Key key2 = {'2'}; HWTEST_F() local
632 Key key2 = {'2'}; HWTEST_F() local
709 Key key2 = {'2'}; HWTEST_F() local
859 Key key2; HWTEST_F() local
[all...]
H A Ddistributeddb_single_ver_p2p_query_sync_test.cpp232 Key key2 = {'2'}; in HWTEST_F() local
234 status = g_kvDelegatePtr->Put(key2, value2); in HWTEST_F()
263 EXPECT_TRUE(g_deviceB->GetData(key2, item) != E_OK); in HWTEST_F()
348 Key key2 = {'2'}; in HWTEST_F() local
350 status = g_kvDelegatePtr->Put(key2, value2); in HWTEST_F()
357 key2.push_back(i); in HWTEST_F()
359 g_deviceB->PutData(key2, value2, 10 + i, 0); in HWTEST_F()
360 key2.pop_back(); in HWTEST_F()
371 Query query = Query::Select().PrefixKey(key2); in HWTEST_F()
387 key2 in HWTEST_F()
419 Key key2 = {'2'}; HWTEST_F() local
1732 Key key2 = {'2'}; HWTEST_F() local
1830 Key key2 = {'2'}; HWTEST_F() local
[all...]
/test/xts/acts/startup_lite/syspara_hal/src/
H A Dparameter_func_test.c139 char key2[] = "rw.sys.version.version"; variable
143 ret = SetParameter(key2, value2);
213 char key2[] = "rw.sys.version.version.version.version"; variable
215 ret = SetParameter(key2, value2);
296 char key2[] = "rw.sys.version.version2"; variable
300 ret = SetParameter(key2, value2);
456 char key2[] = "rw.sys.version.version"; variable
461 SetParameter(key2, rightVal2);
462 ret = GetParameter(key2, g_defSysParam, value2, MAX_LEN);
/third_party/icu/icu4c/source/test/intltest/
H A Duvectest.cpp74 UVectorTest_compareInt32(UElement key1, UElement key2) { in UVectorTest_compareInt32() argument
75 if (key1.integer > key2.integer) { in UVectorTest_compareInt32()
78 else if (key1.integer < key2.integer) { in UVectorTest_compareInt32()
86 UVectorTest_compareCstrings(const UElement key1, const UElement key2) { in UVectorTest_compareCstrings() argument
87 return !strcmp((const char *)key1.pointer, (const char *)key2.pointer); in UVectorTest_compareCstrings()
183 static UBool U_CALLCONV neverTRUE(const UElement /*key1*/, const UElement /*key2*/) { in neverTRUE()

Completed in 18 milliseconds

12345678910>>...13