Home
last modified time | relevance | path

Searched refs:key1 (Results 26 - 50 of 361) sorted by relevance

12345678910>>...15

/kernel/linux/linux-6.6/fs/ubifs/
H A Dkey.h472 * @key1: the first key to compare
475 * This function compares 2 keys and returns %-1 if @key1 is less than
476 * @key2, %0 if the keys are equivalent and %1 if @key1 is greater than @key2.
479 const union ubifs_key *key1, 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()
497 * @key1: the first key to compare
500 * This function compares 2 keys and returns %1 if @key1 i
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...]
H A Dtnc_misc.c369 const union ubifs_key *key1, *key2; in read_znode() local
371 key1 = &znode->zbranch[i].key; in read_znode()
374 cmp = keys_cmp(c, key1, key2); in read_znode()
379 } else if (cmp == 0 && !is_hash_key(c, key1)) { in read_znode()
463 union ubifs_key key1, *key = &zbr->key; in ubifs_tnc_read_node() local
485 key_read(c, node + UBIFS_KEY_OFFSET, &key1); in ubifs_tnc_read_node()
486 if (!keys_eq(c, key, &key1)) { in ubifs_tnc_read_node()
490 dbg_tnck(&key1, "but found node's key "); in ubifs_tnc_read_node()
/third_party/node/deps/openssl/openssl/providers/implementations/keymgmt/
H A Dmac_legacy_kmgmt.c159 const MAC_KEY *key1 = keydata1; in mac_match() local
167 if ((key1->priv_key == NULL && key2->priv_key != NULL) in mac_match()
168 || (key1->priv_key != NULL && key2->priv_key == NULL) in mac_match()
169 || key1->priv_key_len != key2->priv_key_len in mac_match()
170 || (key1->cipher.cipher == NULL && key2->cipher.cipher != NULL) in mac_match()
171 || (key1->cipher.cipher != NULL && key2->cipher.cipher == NULL)) in mac_match()
174 ok = ok && (key1->priv_key == NULL /* implies key2->privkey == NULL */ in mac_match()
175 || CRYPTO_memcmp(key1->priv_key, key2->priv_key, in mac_match()
176 key1->priv_key_len) == 0); in mac_match()
177 if (key1 in mac_match()
[all...]
/third_party/openssl/providers/implementations/keymgmt/
H A Dmac_legacy_kmgmt.c159 const MAC_KEY *key1 = keydata1; in mac_match() local
167 if ((key1->priv_key == NULL && key2->priv_key != NULL) in mac_match()
168 || (key1->priv_key != NULL && key2->priv_key == NULL) in mac_match()
169 || key1->priv_key_len != key2->priv_key_len in mac_match()
170 || (key1->cipher.cipher == NULL && key2->cipher.cipher != NULL) in mac_match()
171 || (key1->cipher.cipher != NULL && key2->cipher.cipher == NULL)) in mac_match()
174 ok = ok && (key1->priv_key == NULL /* implies key2->privkey == NULL */ in mac_match()
175 || CRYPTO_memcmp(key1->priv_key, key2->priv_key, in mac_match()
176 key1->priv_key_len) == 0); in mac_match()
177 if (key1 in mac_match()
[all...]
/third_party/rust/crates/rust-openssl/openssl/src/
H A Ddh.rs389 let key1 = dh1.generate_key().unwrap(); in test_dh_stored_restored()
393 .set_private_key(key1.private_key().to_owned().unwrap()) in test_dh_stored_restored()
396 assert_eq!(key1.public_key(), key2.public_key()); in test_dh_stored_restored()
397 assert_eq!(key1.private_key(), key2.private_key()); in test_dh_stored_restored()
404 let key1 = dh1.generate_key().unwrap(); in test_set_keys()
408 .set_public_key(key1.public_key().to_owned().unwrap()) in test_set_keys()
411 assert_eq!(key1.public_key(), key2.public_key()); in test_set_keys()
416 key1.public_key().to_owned().unwrap(), in test_set_keys()
417 key1.private_key().to_owned().unwrap(), in test_set_keys()
420 assert_eq!(key1 in test_set_keys()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/
H A Dtest_gamepad.py70 key1 = libevdev.evbit(uhdev.buttons_map[b1])
76 expected_event0 = libevdev.InputEvent(key1, 1)
83 assert evdev.value[key1] == 1
88 expected_event = libevdev.InputEvent(key1, 0)
92 assert evdev.value[key1] == 0
101 assert evdev.value[key1] == 0
/kernel/linux/linux-5.10/net/mptcp/
H A Dcrypto_test.c37 u64 key1, key2; in mptcp_crypto_test_basic() local
43 key1 = be64_to_cpu(*((__be64 *)&tests[i].key[0])); in mptcp_crypto_test_basic()
51 mptcp_crypto_hmac_sha(key1, key2, msg, 8, hmac); in mptcp_crypto_test_basic()
/kernel/linux/linux-6.6/net/mptcp/
H A Dcrypto_test.c37 u64 key1, key2; in mptcp_crypto_test_basic() local
43 key1 = be64_to_cpu(*((__be64 *)&tests[i].key[0])); in mptcp_crypto_test_basic()
51 mptcp_crypto_hmac_sha(key1, key2, msg, 8, hmac); in mptcp_crypto_test_basic()
/third_party/ltp/testcases/kernel/syscalls/request_key/
H A Drequest_key02.c28 static int key1; variable
37 {"ltp1", ENOKEY, &key1},
90 key1 = KEY_REQKEY_DEFL_DEFAULT; in setup()
/third_party/ltp/testcases/network/virt/
H A Dmacsec_lib.sh30 local key1="98765432109876543210987612343434"
42 ROD $cmd rx address $h1 port 1 sa $sa pn 100 on key $keyid1 $key1
44 tst_rhost_run -s -c "$cmd tx sa $sa pn 100 on key $keyid1 $key1"
/third_party/node/deps/v8/src/compiler/
H A Dstate-values-utils.cc24 bool StateValuesCache::AreKeysEqual(void* key1, void* key2) { in AreKeysEqual() argument
25 NodeKey* node_key1 = reinterpret_cast<NodeKey*>(key1); in AreKeysEqual()
30 return AreValueKeysEqual(reinterpret_cast<StateValuesKey*>(key1), in AreKeysEqual()
33 return IsKeysEqualToNode(reinterpret_cast<StateValuesKey*>(key1), in AreKeysEqual()
74 bool StateValuesCache::AreValueKeysEqual(StateValuesKey* key1, in AreValueKeysEqual() argument
76 if (key1->count != key2->count) { in AreValueKeysEqual()
79 if (key1->mask != key2->mask) { in AreValueKeysEqual()
82 for (size_t i = 0; i < key1->count; i++) { in AreValueKeysEqual()
83 if (key1->values[i] != key2->values[i]) { in AreValueKeysEqual()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dtimer_mim.c10 int err, prog_fd, key1 = 1; in timer_mim() local
38 err = bpf_map__delete_elem(timer_skel->maps.outer_arr, &key1, sizeof(key1), 0); in timer_mim()
/kernel/linux/linux-6.6/kernel/futex/
H A Dfutex.h130 * @key1: Pointer to key1
135 static inline int futex_match(union futex_key *key1, union futex_key *key2) in futex_match() argument
137 return (key1 && key2 in futex_match()
138 && key1->both.word == key2->both.word in futex_match()
139 && key1->both.ptr == key2->both.ptr in futex_match()
140 && key1->both.offset == key2->both.offset); in futex_match()
H A Drequeue.c79 * If key1 and key2 hash to the same bucket, no need to in requeue_futex()
245 * @key1: the from futex key
268 struct futex_hash_bucket *hb2, union futex_key *key1, in futex_proxy_trylock_atomic()
290 top_waiter = futex_top_waiter(hb1, key1); in futex_proxy_trylock_atomic()
367 union futex_key key1 = FUTEX_KEY_INIT, key2 = FUTEX_KEY_INIT; in futex_requeue() local
427 ret = get_futex_key(uaddr1, flags & FLAGS_SHARED, &key1, FUTEX_READ); in futex_requeue()
439 if (requeue_pi && futex_match(&key1, &key2)) in futex_requeue()
442 hb1 = futex_hash(&key1); in futex_requeue()
484 ret = futex_proxy_trylock_atomic(uaddr2, hb1, hb2, &key1, in futex_requeue()
574 if (!futex_match(&this->key, &key1)) in futex_requeue()
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
[all...]
/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()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DStaticUnicodeSets.java87 * Checks if the UnicodeSet given by key1 contains the given string.
91 * @param key1
93 * @return key1 if the set contains str, or COUNT if not.
95 public static Key chooseFrom(String str, Key key1) { in chooseFrom() argument
96 return get(key1).contains(str) ? key1 : null; in chooseFrom()
100 * Checks if the UnicodeSet given by either key1 or key2 contains the string.
106 * @param key1
110 * @return key1 if that set contains str; key2 if that set contains str; or COUNT if neither set
113 public static Key chooseFrom(String str, Key key1, Ke argument
[all...]
/third_party/icu/icu4c/source/common/
H A Dstatic_unicode_sets.cpp222 Key unisets::chooseFrom(UnicodeString str, Key key1) { in chooseFrom() argument
223 return get(key1)->contains(str) ? key1 : NONE; in chooseFrom()
226 Key unisets::chooseFrom(UnicodeString str, Key key1, Key key2) { in chooseFrom() argument
227 return get(key1)->contains(str) ? key1 : chooseFrom(str, key2); in chooseFrom()
H A Duelement.h76 * @param key1 The string for comparison
78 * @return true if key1 and key2 are equal, return false otherwise.
81 uhash_compareUnicodeString(const UElement key1, const UElement key2);
87 * @param key1 The string for comparison
89 * @return true if key1 and key2 are equal, return false otherwise.
92 uhash_compareCaselessUnicodeString(const UElement key1, const UElement key2);
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DStaticUnicodeSets.java94 * Checks if the UnicodeSet given by key1 contains the given string.
98 * @param key1
100 * @return key1 if the set contains str, or COUNT if not.
102 public static Key chooseFrom(String str, Key key1) { in chooseFrom() argument
103 return safeContains(get(key1), str) ? key1 : null; in chooseFrom()
107 * Checks if the UnicodeSet given by either key1 or key2 contains the string.
113 * @param key1
117 * @return key1 if that set contains str; key2 if that set contains str; or COUNT if neither set
120 public static Key chooseFrom(String str, Key key1, Ke argument
[all...]
/third_party/node/deps/icu-small/source/common/
H A Dstatic_unicode_sets.cpp222 Key unisets::chooseFrom(UnicodeString str, Key key1) { in chooseFrom() argument
223 return get(key1)->contains(str) ? key1 : NONE; in chooseFrom()
226 Key unisets::chooseFrom(UnicodeString str, Key key1, Key key2) { in chooseFrom() argument
227 return get(key1)->contains(str) ? key1 : chooseFrom(str, key2); in chooseFrom()
H A Duelement.h76 * @param key1 The string for comparison
78 * @return true if key1 and key2 are equal, return false otherwise.
81 uhash_compareUnicodeString(const UElement key1, const UElement key2);
87 * @param key1 The string for comparison
89 * @return true if key1 and key2 are equal, return false otherwise.
92 uhash_compareCaselessUnicodeString(const UElement key1, const UElement key2);
/third_party/skia/third_party/externals/icu/source/common/
H A Dstatic_unicode_sets.cpp222 Key unisets::chooseFrom(UnicodeString str, Key key1) { in chooseFrom() argument
223 return get(key1)->contains(str) ? key1 : NONE; in chooseFrom()
226 Key unisets::chooseFrom(UnicodeString str, Key key1, Key key2) { in chooseFrom() argument
227 return get(key1)->contains(str) ? key1 : chooseFrom(str, key2); in chooseFrom()
H A Duelement.h73 * @param key1 The string for comparison
75 * @return true if key1 and key2 are equal, return false otherwise.
78 uhash_compareUnicodeString(const UElement key1, const UElement key2);
84 * @param key1 The string for comparison
86 * @return true if key1 and key2 are equal, return false otherwise.
89 uhash_compareCaselessUnicodeString(const UElement key1, const UElement key2);
/third_party/node/test/parallel/
H A Dtest-set-incoming-message-header.js24 im.headers = { key1: 'value1' };
26 assert.deepStrictEqual(im.headers, { key1: 'value1', key2: 'value2' });
/kernel/linux/linux-5.10/fs/ubifs/
H A Dtnc_misc.c369 const union ubifs_key *key1, *key2; in read_znode() local
371 key1 = &znode->zbranch[i].key; in read_znode()
374 cmp = keys_cmp(c, key1, key2); in read_znode()
379 } else if (cmp == 0 && !is_hash_key(c, key1)) { in read_znode()
464 union ubifs_key key1, *key = &zbr->key; in ubifs_tnc_read_node() local
486 key_read(c, node + UBIFS_KEY_OFFSET, &key1); in ubifs_tnc_read_node()
487 if (!keys_eq(c, key, &key1)) { in ubifs_tnc_read_node()
491 dbg_tnck(&key1, "but found node's key "); in ubifs_tnc_read_node()

Completed in 13 milliseconds

12345678910>>...15