Home
last modified time | relevance | path

Searched refs:key1 (Results 1 – 25 of 94) sorted by relevance

1234

/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/crypt/
H A Dderive_key_taf.c58 uint8_t key1[32] = { }; in derive_ta_unique_key_test() local
78 res = derive_unique_key(session, key1, sizeof(key1), NULL, 0); in derive_ta_unique_key_test()
86 if (TEE_MemCompare(key1, key2, sizeof(key1)) != 0) in derive_ta_unique_key_test()
89 TEE_MemFill(key1, 0, sizeof(key1)); in derive_ta_unique_key_test()
97 res = derive_unique_key(session, key1, sizeof(key1), extra_key_data, in derive_ta_unique_key_test()
107 if (TEE_MemCompare(key1, key2, sizeof(key1)) != 0) in derive_ta_unique_key_test()
110 TEE_MemFill(key1, 0, sizeof(key1)); in derive_ta_unique_key_test()
118 res = derive_unique_key(session, key1, sizeof(key1), extra_key_data, in derive_ta_unique_key_test()
128 if (TEE_MemCompare(key1, key2, sizeof(key1)) == 0) in derive_ta_unique_key_test()
131 TEE_MemFill(key1, 0, sizeof(key1)); in derive_ta_unique_key_test()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/keyboard/
H A Dep93xx_keypad.c72 int key1; member
85 int keycode, key1, key2; in ep93xx_keypad_irq_handler() local
90 key1 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler()
96 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1) in ep93xx_keypad_irq_handler()
97 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler()
99 if (keypad->key2 && key1 != keypad->key2 && key2 != keypad->key2) in ep93xx_keypad_irq_handler()
102 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler()
105 keypad->key1 = key1; in ep93xx_keypad_irq_handler()
109 if (keypad->key1 && key1 != keypad->key1) in ep93xx_keypad_irq_handler()
110 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler()
[all …]
/OK3568_Linux_fs/kernel/fs/befs/
H A Dbtree.c119 static int befs_compare_strings(const void *key1, int keylen1,
712 befs_compare_strings(const void *key1, int keylen1, in befs_compare_strings() argument
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;
731 btree_compare_uint32(cont void *key1, int keylen1,
734 if (*(u_int32_t *) key1 == *(u_int32_t *) key2)
736 else if (*(u_int32_t *) key1 > *(u_int32_t *) key2)
742 btree_compare_int64(cont void *key1, int keylen1, const void *key2, int keylen2)
744 if (*(int64_t *) key1 == *(int64_t *) key2)
[all …]
/OK3568_Linux_fs/kernel/arch/arm/crypto/
H A Daes-ce-core.S26 .macro enc_dround, key1, key2
27 enc_round q0, \key1
31 .macro dec_dround, key1, key2
32 dec_round q0, \key1
36 .macro enc_fround, key1, key2, key3
37 enc_round q0, \key1
42 .macro dec_fround, key1, key2, key3
43 dec_round q0, \key1
48 .macro enc_dround_4x, key1, key2
49 enc_round q0, \key1
[all …]
H A Daes-ce-glue.c146 struct crypto_aes_ctx key1; member
160 ret = ce_aes_expandkey(&ctx->key1, in_key, key_len / 2); in xts_set_key()
448 int err, first, rounds = num_rounds(&ctx->key1); in xts_encrypt()
487 ctx->key1.key_enc, rounds, nbytes, walk.iv, in xts_encrypt()
509 ctx->key1.key_enc, rounds, walk.nbytes, walk.iv, in xts_encrypt()
520 int err, first, rounds = num_rounds(&ctx->key1); in xts_decrypt()
559 ctx->key1.key_dec, rounds, nbytes, walk.iv, in xts_decrypt()
581 ctx->key1.key_dec, rounds, walk.nbytes, walk.iv, in xts_decrypt()
/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Daes_xts.c9 static int aes_xts128_encrypt(const RK_AES_KEY *key1, const RK_AES_KEY *key2, in aes_xts128_encrypt() argument
33 rk_aes_encrypt(scratch.c, scratch.c, key1); in aes_xts128_encrypt()
35 rk_aes_decrypt(scratch.c, scratch.c, key1); in aes_xts128_encrypt()
76 rk_aes_encrypt(scratch.c, scratch.c, key1); in aes_xts128_encrypt()
108 rk_aes_decrypt(scratch.c, scratch.c, key1); in aes_xts128_encrypt()
120 rk_aes_decrypt(scratch.c, scratch.c, key1); in aes_xts128_encrypt()
/OK3568_Linux_fs/u-boot/fs/ubifs/
H A Dkey.h473 const union ubifs_key *key1, in keys_cmp() argument
476 if (key1->u32[0] < key2->u32[0]) in keys_cmp()
478 if (key1->u32[0] > key2->u32[0]) in keys_cmp()
480 if (key1->u32[1] < key2->u32[1]) in keys_cmp()
482 if (key1->u32[1] > key2->u32[1]) in keys_cmp()
498 const union ubifs_key *key1, in keys_eq() argument
501 if (key1->u32[0] != key2->u32[0]) in keys_eq()
503 if (key1->u32[1] != key2->u32[1]) in keys_eq()
H A Dtnc_misc.c358 const union ubifs_key *key1, *key2; in read_znode() local
360 key1 = &znode->zbranch[i].key; in read_znode()
363 cmp = keys_cmp(c, key1, key2); in read_znode()
368 } else if (cmp == 0 && !is_hash_key(c, key1)) { in read_znode()
453 union ubifs_key key1, *key = &zbr->key; in ubifs_tnc_read_node() local
475 key_read(c, node + UBIFS_KEY_OFFSET, &key1); in ubifs_tnc_read_node()
476 if (!keys_eq(c, key, &key1)) { in ubifs_tnc_read_node()
480 dbg_tnck(&key1, "but found node's key "); in ubifs_tnc_read_node()
H A Dtnc.c1698 union ubifs_key key1; in validate_data_node() local
1721 key_read(c, buf + UBIFS_KEY_OFFSET, &key1); in validate_data_node()
1722 if (!keys_eq(c, &zbr->key, &key1)) { in validate_data_node()
1726 dbg_tnck(&key1, "found node's key "); in validate_data_node()
1893 union ubifs_key *key, *key1; in correct_parent_keys() local
1899 key1 = &znode->parent->zbranch[0].key; in correct_parent_keys()
1901 while (keys_cmp(c, key, key1) < 0) { in correct_parent_keys()
1902 key_copy(c, key, key1); in correct_parent_keys()
1907 key1 = &znode->parent->zbranch[0].key; in correct_parent_keys()
1979 union ubifs_key *key = &zbr->key, *key1; in tnc_insert() local
[all …]
/OK3568_Linux_fs/kernel/fs/ubifs/
H A Dkey.h479 const union ubifs_key *key1, in keys_cmp() argument
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()
504 const union ubifs_key *key1, in keys_eq() argument
507 if (key1->u32[0] != key2->u32[0]) in keys_eq()
509 if (key1->u32[1] != key2->u32[1]) in keys_eq()
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()
H A Dtnc.c1692 union ubifs_key key1; in validate_data_node() local
1721 key_read(c, buf + UBIFS_KEY_OFFSET, &key1); in validate_data_node()
1722 if (!keys_eq(c, &zbr->key, &key1)) { in validate_data_node()
1726 dbg_tnck(&key1, "found node's key "); in validate_data_node()
1998 union ubifs_key *key, *key1; in correct_parent_keys() local
2004 key1 = &znode->parent->zbranch[0].key; in correct_parent_keys()
2006 while (keys_cmp(c, key, key1) < 0) { in correct_parent_keys()
2007 key_copy(c, key, key1); in correct_parent_keys()
2012 key1 = &znode->parent->zbranch[0].key; in correct_parent_keys()
2085 union ubifs_key *key = &zbr->key, *key1; in tnc_insert() local
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/vmx/
H A Daesp8-ppc.pl1966 my ($inp,$out,$len,$key1,$key2,$ivp,$rounds,$idx) = map("r$_",(3..10));
2051 ?lvsl $keyperm,0,$key1 # prepare for unaligned key
2052 lwz $rounds,240($key1)
2072 lvx $rndkey0,0,$key1
2073 lvx $rndkey1,$idx,$key1
2079 lvx $rndkey0,$idx,$key1
2088 lvx $rndkey1,$idx,$key1
2092 lvx $rndkey0,$idx,$key1
2098 lvx $rndkey1,$idx,$key1
2116 lvx $rndkey0,0,$key1
[all …]
H A Daesp8-ppc.h22 const struct aes_key *key1, const struct aes_key *key2, u8 *iv);
24 const struct aes_key *key1, const struct aes_key *key2, u8 *iv);
/OK3568_Linux_fs/kernel/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()
H A Dcrypto.c44 void mptcp_crypto_hmac_sha(u64 key1, u64 key2, u8 *msg, int len, void *hmac) in mptcp_crypto_hmac_sha() argument
54 put_unaligned_be64(key1, key1be); in mptcp_crypto_hmac_sha()
/OK3568_Linux_fs/external/mpp/mpp/base/
H A Dmpp_trie.cpp188 RK_S32 key1 = (key >> 0) & 0xf; in mpp_trie_add_info() local
194 trie, s, i, key, key, key0, key1, idx, next); in mpp_trie_add_info()
208 next = node->next[key1]; in mpp_trie_add_info()
211 trie, s, i, key, key, key0, key1, idx, next); in mpp_trie_add_info()
217 node->next[key1] = next; in mpp_trie_add_info()
226 trie, s, i, key, key, key0, key1, idx, next); in mpp_trie_add_info()
/OK3568_Linux_fs/kernel/arch/arm64/crypto/
H A Daes-glue.c111 struct crypto_aes_ctx key1; member
116 struct crypto_aes_ctx key1; member
149 ret = aes_expandkey(&ctx->key1, in_key, key_len / 2); in xts_set_key()
164 ret = aes_expandkey(&ctx->key1, in_key, key_len); in essiv_cbc_set_key()
405 int err, rounds = 6 + ctx->key1.key_length / 4; in essiv_cbc_encrypt()
415 ctx->key1.key_enc, rounds, blocks, in essiv_cbc_encrypt()
427 int err, rounds = 6 + ctx->key1.key_length / 4; in essiv_cbc_decrypt()
437 ctx->key1.key_dec, rounds, blocks, in essiv_cbc_decrypt()
488 int err, first, rounds = 6 + ctx->key1.key_length / 4; in xts_encrypt()
527 ctx->key1.key_enc, rounds, nbytes, in xts_encrypt()
[all …]
/OK3568_Linux_fs/kernel/security/selinux/ss/
H A Dsymtab.c26 static int symcmp(const void *key1, const void *key2) in symcmp() argument
30 keyp1 = key1; in symcmp()
/OK3568_Linux_fs/kernel/crypto/
H A Dxcbc.c58 u8 key1[XCBC_BLOCKSIZE]; in crypto_xcbc_digest_setkey() local
59 int bs = sizeof(key1); in crypto_xcbc_digest_setkey()
66 crypto_cipher_encrypt_one(ctx->child, key1, (u8 *)ks); in crypto_xcbc_digest_setkey()
68 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey()
/OK3568_Linux_fs/kernel/drivers/infiniband/sw/rxe/
H A Drxe_verbs.h17 static inline int pkey_match(u16 key1, u16 key2) in pkey_match() argument
19 return (((key1 & 0x7fff) != 0) && in pkey_match()
20 ((key1 & 0x7fff) == (key2 & 0x7fff)) && in pkey_match()
21 ((key1 & 0x8000) || (key2 & 0x8000))) ? 1 : 0; in pkey_match()
/OK3568_Linux_fs/kernel/kernel/
H A Dfutex.c378 static inline int match_futex(union futex_key *key1, union futex_key *key2) in match_futex() argument
380 return (key1 && key2 in match_futex()
381 && key1->both.word == key2->both.word in match_futex()
382 && key1->both.ptr == key2->both.ptr in match_futex()
383 && key1->both.offset == key2->both.offset); in match_futex()
1694 union futex_key key1 = FUTEX_KEY_INIT, key2 = FUTEX_KEY_INIT; in futex_wake_op() local
1701 ret = get_futex_key(uaddr1, flags & FLAGS_SHARED, &key1, FUTEX_READ); in futex_wake_op()
1708 hb1 = hash_futex(&key1); in futex_wake_op()
1743 if (match_futex (&this->key, &key1)) { in futex_wake_op()
1860 struct futex_hash_bucket *hb2, union futex_key *key1, in futex_proxy_trylock_atomic() argument
[all …]
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dlocal_storage.c44 const struct bpf_cgroup_storage_key *key1 = _key1; in bpf_cgroup_storage_key_cmp() local
47 if (key1->cgroup_inode_id < key2->cgroup_inode_id) in bpf_cgroup_storage_key_cmp()
49 else if (key1->cgroup_inode_id > key2->cgroup_inode_id) in bpf_cgroup_storage_key_cmp()
51 else if (key1->attach_type < key2->attach_type) in bpf_cgroup_storage_key_cmp()
53 else if (key1->attach_type > key2->attach_type) in bpf_cgroup_storage_key_cmp()
/OK3568_Linux_fs/kernel/drivers/net/wireless/ath/
H A Dkey.c134 u32 key0, key1, key2, key3, key4; in ath_hw_set_keycache_entry() local
185 key1 = get_unaligned_le16(k->kv_val + 4); in ath_hw_set_keycache_entry()
209 REG_WRITE(ah, AR_KEYTABLE_KEY1(entry), ~key1); in ath_hw_set_keycache_entry()
312 REG_WRITE(ah, AR_KEYTABLE_KEY1(entry), key1); in ath_hw_set_keycache_entry()
320 REG_WRITE(ah, AR_KEYTABLE_KEY1(entry), key1); in ath_hw_set_keycache_entry()
/OK3568_Linux_fs/kernel/fs/hfs/
H A Dcatalog.c171 int hfs_cat_keycmp(const btree_key *key1, const btree_key *key2) in hfs_cat_keycmp() argument
175 k1p = key1->cat.ParID; in hfs_cat_keycmp()
181 return hfs_strcmp(key1->cat.CName.name, key1->cat.CName.len, in hfs_cat_keycmp()

1234