/third_party/curl/tests/unit/ |
H A D | unit1603.c | 56 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 D | str2key.c | 46 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 D | str2key.c | 46 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...] |
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | ep93xx_keypad.c | 73 int key2; member 85 int keycode, key1, key2; in ep93xx_keypad_irq_handler() local 93 key2 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler() 96 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1) in ep93xx_keypad_irq_handler() 99 if (keypad->key2 && key1 != keypad->key2 && key2 != keypad->key2) in ep93xx_keypad_irq_handler() 100 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler() 103 input_report_key(input_dev, key2, in ep93xx_keypad_irq_handler() [all...] |
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | ep93xx_keypad.c | 76 int key2; member 88 int keycode, key1, key2; in ep93xx_keypad_irq_handler() local 96 key2 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler() 99 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1) in ep93xx_keypad_irq_handler() 102 if (keypad->key2 && key1 != keypad->key2 && key2 != keypad->key2) in ep93xx_keypad_irq_handler() 103 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler() 106 input_report_key(input_dev, key2, in ep93xx_keypad_irq_handler() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/ |
H A D | conf.c | 344 const char *key2, snd_config_t **result) in conf_get_by_keys() 353 if (key2) in conf_get_by_keys() 354 ret = snd_config_search(root, key2, &root); in conf_get_by_keys() 360 snd_config_t *conf_get_subtree(snd_config_t *root, const char *key1, const char *key2) in conf_get_subtree() argument 366 ret = conf_get_by_keys(root, key1, key2, &root); in conf_get_subtree() 370 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_subtree() 374 int conf_get_count(snd_config_t *root, const char *key1, const char *key2) in conf_get_count() argument 382 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_count() 386 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_count() 388 ksft_exit_fail_msg("key '%s'.'%s' is not a compound\n", key1, key2); in conf_get_count() 343 conf_get_by_keys(snd_config_t *root, const char *key1, const char *key2, snd_config_t **result) conf_get_by_keys() argument 395 conf_get_string(snd_config_t *root, const char *key1, const char *key2, const char *def) conf_get_string() argument 413 conf_get_long(snd_config_t *root, const char *key1, const char *key2, long def) conf_get_long() argument 431 conf_get_bool(snd_config_t *root, const char *key1, const char *key2, int def) conf_get_bool() argument 449 conf_get_string_array(snd_config_t *root, const char *key1, const char *key2, const char **array, int array_size, const char *def) conf_get_string_array() argument [all...] |
H A D | alsa-local.h | 19 snd_config_t *conf_get_subtree(snd_config_t *root, const char *key1, const char *key2); 20 int conf_get_count(snd_config_t *root, const char *key1, const char *key2); 21 const char *conf_get_string(snd_config_t *root, const char *key1, const char *key2, const char *def); 22 long conf_get_long(snd_config_t *root, const char *key1, const char *key2, long def); 23 int conf_get_bool(snd_config_t *root, const char *key1, const char *key2, int def); 24 void conf_get_string_array(snd_config_t *root, const char *key1, const char *key2,
|
/third_party/selinux/libsepol/cil/src/ |
H A D | cil_symtab.c | 154 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...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_btree.h | 163 * Difference between key2 and key1 -- positive if key1 > key2, 164 * negative if key1 < key2, and zero if equal. If the @mask parameter 170 const union xfs_btree_key *key2, 188 * Given two btree keys @key1 and @key2, decide if it is impossible for 190 * @key1 < K < @key2. To determine if two btree records are 192 * record and @key2 should be the low key of the second record. 198 const union xfs_btree_key *key2, 585 const union xfs_btree_key *key2); 601 const union xfs_btree_key *key2) in xfs_btree_keycmp_lt() 598 xfs_btree_keycmp_lt( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_lt() argument 607 xfs_btree_keycmp_gt( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_gt() argument 616 xfs_btree_keycmp_eq( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_eq() argument 625 xfs_btree_keycmp_le( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_le() argument 634 xfs_btree_keycmp_ge( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_ge() argument 643 xfs_btree_keycmp_ne( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_ne() argument 653 xfs_btree_masked_keycmp_lt( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2, const union xfs_btree_key *mask) xfs_btree_masked_keycmp_lt() argument 663 xfs_btree_masked_keycmp_gt( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2, const union xfs_btree_key *mask) xfs_btree_masked_keycmp_gt() argument 673 xfs_btree_masked_keycmp_ge( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2, const union xfs_btree_key *mask) xfs_btree_masked_keycmp_ge() argument [all...] |
/kernel/linux/linux-6.6/kernel/futex/ |
H A D | requeue.c | 71 * @key2: the new key for the requeued futex_q 75 struct futex_hash_bucket *hb2, union futex_key *key2) in requeue_futex() 79 * If key1 and key2 hash to the same bucket, no need to in requeue_futex() 89 q->key = *key2; in requeue_futex() 246 * @key2: the to futex key 269 union futex_key *key2, struct futex_pi_state **ps, in futex_proxy_trylock_atomic() 304 if (!futex_match(top_waiter->requeue_pi_key, key2)) in futex_proxy_trylock_atomic() 319 ret = futex_lock_pi_atomic(pifutex, hb2, key2, ps, top_waiter->task, in futex_proxy_trylock_atomic() 328 requeue_pi_wake_futex(top_waiter, key2, hb2); in futex_proxy_trylock_atomic() 367 union futex_key key1 = FUTEX_KEY_INIT, key2 in futex_requeue() local 74 requeue_futex(struct futex_q *q, struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2, union futex_key *key2) requeue_futex() argument 267 futex_proxy_trylock_atomic(u32 __user *pifutex, struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2, union futex_key *key1, union futex_key *key2, struct futex_pi_state **ps, struct task_struct **exiting, int set_waiters) futex_proxy_trylock_atomic() argument 769 union futex_key key2 = FUTEX_KEY_INIT; futex_wait_requeue_pi() local [all...] |
/kernel/linux/linux-5.10/fs/befs/ |
H A D | btree.c | 120 const void *key2, int keylen2); 704 * @key2: pointer to the second key to be compared 705 * @keylen2: length in bytes of key2 707 * Returns 0 if @key1 and @key2 are equal. 709 * Returns <0 if @key2 is greater. 713 const void *key2, int keylen2) in befs_compare_strings() 716 int result = strncmp(key1, key2, len); in befs_compare_strings() 725 btree_compare_int32(cont void *key1, int keylen1, const void *key2, int keylen2) 727 return *(int32_t *) key1 - *(int32_t *) key2; 732 const void *key2, in 712 befs_compare_strings(const void *key1, int keylen1, const void *key2, int keylen2) befs_compare_strings() argument [all...] |
/kernel/linux/linux-6.6/fs/befs/ |
H A D | btree.c | 120 const void *key2, int keylen2); 704 * @key2: pointer to the second key to be compared 705 * @keylen2: length in bytes of key2 707 * Returns 0 if @key1 and @key2 are equal. 709 * Returns <0 if @key2 is greater. 713 const void *key2, int keylen2) in befs_compare_strings() 716 int result = strncmp(key1, key2, len); in befs_compare_strings() 725 btree_compare_int32(cont void *key1, int keylen1, const void *key2, int keylen2) 727 return *(int32_t *) key1 - *(int32_t *) key2; 732 const void *key2, in 712 befs_compare_strings(const void *key1, int keylen1, const void *key2, int keylen2) befs_compare_strings() argument [all...] |
/third_party/ffmpeg/libavutil/tests/ |
H A D | hmac.c | 46 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 D | igetest.c | 82 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 D | distributeddb_storage_rd_single_ver_natural_store_testcase.cpp | 97 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...] |
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H A D | aes-ce-core.S | 26 .macro enc_dround, key1, key2 28 enc_round q0, \key2 31 .macro dec_dround, key1, key2 33 dec_round q0, \key2 36 .macro enc_fround, key1, key2, key3 38 aese.8 q0, \key2 42 .macro dec_fround, key1, key2, key3 44 aesd.8 q0, \key2 48 .macro enc_dround_4x, key1, key2 53 enc_round q0, \key2 [all...] |
/kernel/linux/linux-6.6/arch/arm/crypto/ |
H A D | aes-ce-core.S | 26 .macro enc_dround, key1, key2 28 enc_round q0, \key2 31 .macro dec_dround, key1, key2 33 dec_round q0, \key2 36 .macro enc_fround, key1, key2, key3 38 aese.8 q0, \key2 42 .macro dec_fround, key1, key2, key3 44 aesd.8 q0, \key2 48 .macro enc_dround_4x, key1, key2 53 enc_round q0, \key2 [all...] |
/third_party/node/deps/openssl/openssl/include/crypto/ |
H A D | aes_platform.h | 41 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 D | aes_platform.h | 41 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 D | ImageFilterCacheTest.cpp | 48 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...] |
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | key.h | 473 * @key2: the second key to compare 476 * @key2, %0 if the keys are equivalent and %1 if @key1 is greater than @key2. 480 const union ubifs_key *key2) in keys_cmp() 482 if (key1->u32[0] < key2->u32[0]) in keys_cmp() 484 if (key1->u32[0] > key2->u32[0]) in keys_cmp() 486 if (key1->u32[1] < key2->u32[1]) in keys_cmp() 488 if (key1->u32[1] > key2->u32[1]) in keys_cmp() 498 * @key2: the second key to compare 500 * This function compares 2 keys and returns %1 if @key1 is equal to @key2 an 478 keys_cmp(const struct ubifs_info *c, const union ubifs_key *key1, const union ubifs_key *key2) keys_cmp() argument 503 keys_eq(const struct ubifs_info *c, const union ubifs_key *key1, const union ubifs_key *key2) keys_eq() argument [all...] |
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | key.h | 473 * @key2: the second key to compare 476 * @key2, %0 if the keys are equivalent and %1 if @key1 is greater than @key2. 480 const union ubifs_key *key2) in keys_cmp() 482 if (key1->u32[0] < key2->u32[0]) in keys_cmp() 484 if (key1->u32[0] > key2->u32[0]) in keys_cmp() 486 if (key1->u32[1] < key2->u32[1]) in keys_cmp() 488 if (key1->u32[1] > key2->u32[1]) in keys_cmp() 498 * @key2: the second key to compare 500 * This function compares 2 keys and returns %1 if @key1 is equal to @key2 an 478 keys_cmp(const struct ubifs_info *c, const union ubifs_key *key1, const union ubifs_key *key2) keys_cmp() argument 503 keys_eq(const struct ubifs_info *c, const union ubifs_key *key1, const union ubifs_key *key2) keys_eq() argument [all...] |
/test/xts/acts/startup_lite/syspara_posix/src/ |
H A D | ParameterTest.cpp | 101 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 D | abilityautostartupdatamanagerb_fuzzer.cpp | 95 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 D | data_share_subscriber_managers_test.cpp | 128 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()
|