Home
last modified time | relevance | path

Searched refs:key (Results 176 – 200 of 5270) sorted by relevance

12345678910>>...211

/openbmc/linux/include/crypto/internal/
H A Dchacha.h11 u32 key[8]; member
15 static inline int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha_setkey() argument
24 for (i = 0; i < ARRAY_SIZE(ctx->key); i++) in chacha_setkey()
25 ctx->key[i] = get_unaligned_le32(key + i * sizeof(u32)); in chacha_setkey()
31 static inline int chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha20_setkey() argument
34 return chacha_setkey(tfm, key, keysize, 20); in chacha20_setkey()
37 static inline int chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha12_setkey() argument
40 return chacha_setkey(tfm, key, keysize, 12); in chacha12_setkey()
/openbmc/linux/include/crypto/
H A Dchacha.h65 void chacha_init_arch(u32 *state, const u32 *key, const u8 *iv);
69 state[4] = key[0]; in chacha_init_generic()
70 state[5] = key[1]; in chacha_init_generic()
71 state[6] = key[2]; in chacha_init_generic()
72 state[7] = key[3]; in chacha_init_generic()
73 state[8] = key[4]; in chacha_init_generic()
74 state[9] = key[5]; in chacha_init_generic()
75 state[10] = key[6]; in chacha_init_generic()
76 state[11] = key[7]; in chacha_init_generic()
86 chacha_init_arch(state, key, iv); in chacha_init()
[all …]
/openbmc/linux/Documentation/security/
H A Dsiphash.rst18 Generating a key
24 siphash_key_t key;
25 get_random_bytes(&key, sizeof(key));
52 Hashtable key function usage::
56 siphash_key_t key;
61 get_random_bytes(&table->key, sizeof(table->key));
141 Generating a hsiphash key
147 hsiphash_key_t key;
148 get_random_bytes(&key, sizeof(key));
178 hsiphash_key_t key;
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfor_each.c17 __u32 key, num_cpus; in test_hash_map() local
31 key = i; in test_hash_map()
33 err = bpf_map__update_elem(skel->maps.hashmap, &key, sizeof(key), in test_hash_map()
45 key = 1; in test_hash_map()
48 err = bpf_map__update_elem(skel->maps.percpu_map, &key, sizeof(key), in test_hash_map()
62 key = 1; in test_hash_map()
63 err = bpf_map__lookup_elem(skel->maps.hashmap, &key, sizeof(key), &val, sizeof(val), 0); in test_hash_map()
98 key = i; in test_array_map()
103 err = bpf_map__update_elem(skel->maps.arraymap, &key, sizeof(key), in test_array_map()
115 key = 0; in test_array_map()
[all …]
H A Dhtab_reuse.c27 unsigned int key; in htab_lookup_fn() local
30 key = 7; in htab_lookup_fn()
44 unsigned int key; in htab_update_fn() local
46 key = 7; in htab_update_fn()
48 value.data = key; in htab_update_fn()
49 bpf_map_update_elem(ctx->fd, &key, &value, BPF_F_LOCK); in htab_update_fn()
50 bpf_map_delete_elem(ctx->fd, &key); in htab_update_fn()
52 key = 24; in htab_update_fn()
54 value.data = key; in htab_update_fn()
55 bpf_map_update_elem(ctx->fd, &key, &value, BPF_F_LOCK); in htab_update_fn()
[all …]
/openbmc/linux/security/keys/trusted-keys/
H A Dtrusted_core.c120 static struct trusted_key_payload *trusted_payload_alloc(struct key *key) in trusted_payload_alloc() argument
146 static int trusted_instantiate(struct key *key, in trusted_instantiate() argument
226 static int trusted_update(struct key *key, struct key_preparsed_payload *prep) in trusted_update() argument
234 if (key_is_negative(key)) in trusted_update()
236 p = key->payload.data[0]; in trusted_update()
246 new_p = trusted_payload_alloc(key); in trusted_update()
264 memcpy(new_p->key, p->key, p->key_len); in trusted_update()
275 rcu_assign_keypointer(key, new_p); in trusted_update()
286 static long trusted_read(const struct key *key, char *buffer, in trusted_read() argument
293 p = dereference_key_locked(key); in trusted_read()
[all …]
/openbmc/obmc-ikvm/
H A Dikvm_input.cpp173 uint8_t sc = keyToScancode(key); in keyEvent()
193 uint8_t mod = keyToMod(key); in keyEvent()
311 uint8_t Input::keyToMod(rfbKeySym key) in keyToMod() argument
315 if (key >= XK_Shift_L && key <= XK_Control_R) in keyToMod()
319 else if (key >= XK_Meta_L && key <= XK_Alt_R) in keyToMod()
331 if ((key >= 'A' && key <= 'Z') || (key >= 'a' && key <= 'z')) in keyToScancode()
335 else if (key >= '1' && key <= '9') in keyToScancode()
339 else if (key >= XK_F1 && key <= XK_F12) in keyToScancode()
343 else if (key >= XK_KP_F1 && key <= XK_KP_F4) in keyToScancode()
347 else if (key >= XK_KP_1 && key <= XK_KP_9) in keyToScancode()
[all …]
/openbmc/linux/block/
H A Dblk-crypto-profile.c41 const struct blk_crypto_key *key; member
191 const struct blk_crypto_key *key) in blk_crypto_find_keyslot() argument
198 if (slotp->key == key) in blk_crypto_find_keyslot()
206 const struct blk_crypto_key *key) in blk_crypto_find_and_grab_keyslot() argument
249 const struct blk_crypto_key *key, in blk_crypto_get_keyslot() argument
303 if (slot->key) in blk_crypto_get_keyslot()
305 slot->key = key; in blk_crypto_get_keyslot()
364 const struct blk_crypto_key *key) in __blk_crypto_evict_key() argument
403 slot->key = NULL; in __blk_crypto_evict_key()
428 const struct blk_crypto_key *key = profile->slots[slot].key; in blk_crypto_reprogram_all_keys() local
[all …]
/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dpxa27x-keypad.txt7 - marvell,debounce-interval : How long time the key will be
9 is debounce interval for direct key and bit[15:0] is debounce
16 - marvell,direct-key-count : How many direct keyes are used.
17 - marvell,direct-key-mask : The mask indicates which keyes
18 are used. If bit[X] of the mask is set, the direct key X
20 - marvell,direct-key-low-active : Direct key status register
23 is low, the key is pressed(active).
25 the linux key-code for the direct key.
29 linux key-code for rotary up. Bit[15:0] is the linux key-code
57 marvell,direct-key-count = <1>;
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D198.out52 key offset: 4096
56 key offset: 262144
59 key offset: 520192
62 key offset: 778240
65 key offset: 1036288
76 master key iters: 1024
98 key offset: 4096
102 key offset: 262144
105 key offset: 520192
108 key offset: 778240
[all …]
/openbmc/linux/samples/bpf/
H A Doffwaketime_user.c47 static void print_stack(struct key_t *key, __u64 count) in print_stack() argument
53 printf("%s;", key->target); in print_stack()
54 if (bpf_map_lookup_elem(map_fd[1], &key->tret, ip) != 0) { in print_stack()
61 if (bpf_map_lookup_elem(map_fd[1], &key->wret, ip) != 0) { in print_stack()
67 printf(";%s %lld\n", key->waker, count); in print_stack()
69 if ((key->tret == -EEXIST || key->wret == -EEXIST) && !warned) { in print_stack()
72 } else if (((int)(key->tret) < 0 || (int)(key->wret) < 0)) { in print_stack()
73 printf("err stackid %d %d\n", key->tret, key->wret); in print_stack()
79 struct key_t key = {}, next_key; in print_stacks() local
82 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_stacks()
[all …]
/openbmc/linux/crypto/asymmetric_keys/
H A Dsignature.c46 struct key *key = params->key; in query_asymmetric_key() local
51 if (key->type != &key_type_asymmetric) in query_asymmetric_key()
53 subtype = asymmetric_key_subtype(key); in query_asymmetric_key()
55 !key->payload.data[0]) in query_asymmetric_key()
137 int verify_signature(const struct key *key, in verify_signature() argument
145 if (key->type != &key_type_asymmetric) in verify_signature()
147 subtype = asymmetric_key_subtype(key); in verify_signature()
149 !key->payload.data[0]) in verify_signature()
154 ret = subtype->verify_signature(key, sig); in verify_signature()
/openbmc/linux/net/mctp/
H A Daf_mctp.c285 __releases(&key->lock) in __mctp_key_remove()
291 skb = key->reasm_head; in __mctp_key_remove()
292 key->reasm_head = NULL; in __mctp_key_remove()
293 key->reasm_dead = true; in __mctp_key_remove()
294 key->valid = false; in __mctp_key_remove()
295 mctp_dev_release_key(key->dev, key); in __mctp_key_remove()
302 mctp_key_unref(key); in __mctp_key_remove()
372 if (IS_ERR(key)) in mctp_ioctl_alloctag()
373 return PTR_ERR(key); in mctp_ioctl_alloctag()
386 mctp_key_unref(key); in mctp_ioctl_alloctag()
[all …]
/openbmc/linux/include/linux/
H A Dlockdep.h214 #define lockdep_set_class(lock, key) \ argument
215 lockdep_init_map_type(&(lock)->dep_map, #key, key, 0, \
227 lockdep_init_map_type(&(lock)->dep_map, #key, key, sub, \
244 #define lockdep_match_class(lock, key) lockdep_match_key(&(lock)->dep_map, key) argument
247 struct lock_class_key *key) in lockdep_match_key() argument
249 return lock->key == key; in lockdep_match_key()
378 # define lock_set_class(l, n, key, s, i) do { (void)(key); } while (0) argument
383 do { (void)(name); (void)(key); } while (0)
390 # define lockdep_set_class(lock, key) do { (void)(key); } while (0) argument
394 do { (void)(key); } while (0)
[all …]
/openbmc/linux/fs/btrfs/
H A Dfile-item.c288 struct btrfs_key key; in search_csum_tree() local
462 struct btrfs_key key; in btrfs_lookup_csums_list() local
485 key.offset = start; in btrfs_lookup_csums_list()
534 key.offset > end) in btrfs_lookup_csums_list()
538 start = key.offset; in btrfs_lookup_csums_list()
605 struct btrfs_key key; in btrfs_lookup_csums_bitmap() local
635 key.offset = start; in btrfs_lookup_csums_bitmap()
688 start = key.offset; in btrfs_lookup_csums_bitmap()
869 struct btrfs_key key; in btrfs_del_csums() local
1273 struct btrfs_key key; in btrfs_extent_item_to_extent_map() local
[all …]
/openbmc/qemu/qobject/
H A Dblock-qdict.c29 if (qdict_haskey(dst, key)) { in qdict_copy_default()
33 val = qdict_get(src, key); in qdict_copy_default()
45 if (qdict_haskey(dst, key)) { in qdict_set_default_str()
49 qdict_put_str(dst, key, val); in qdict_set_default_str()
100 char *key, *new_key; in qdict_flatten_qdict() local
111 key = new_key = g_strdup_printf("%s.%s", prefix, entry->key); in qdict_flatten_qdict()
113 key = entry->key; in qdict_flatten_qdict()
298 separator = key; in qdict_split_flat_key()
304 *prefix = g_strndup(key, separator - key); in qdict_split_flat_key()
307 *prefix = g_strdup(key); in qdict_split_flat_key()
[all …]
/openbmc/linux/tools/lib/bpf/
H A Dhashmap.c131 const long key, size_t hash, in hashmap_find_entry() argument
143 if (map->equal_fn(cur->key, key, map->ctx)) { in hashmap_find_entry()
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert()
169 hashmap_find_entry(map, key, h, NULL, &entry)) { in hashmap_insert()
171 *old_key = entry->key; in hashmap_insert()
176 entry->key = key; in hashmap_insert()
198 entry->key = key; in hashmap_insert()
212 if (!hashmap_find_entry(map, key, h, NULL, &entry)) in hashmap_find()
220 bool hashmap_delete(struct hashmap *map, long key, in hashmap_delete() argument
227 if (!hashmap_find_entry(map, key, h, &pprev, &entry)) in hashmap_delete()
[all …]
/openbmc/linux/tools/perf/util/
H A Dhashmap.c131 const long key, size_t hash, in hashmap_find_entry() argument
143 if (map->equal_fn(cur->key, key, map->ctx)) { in hashmap_find_entry()
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert()
169 hashmap_find_entry(map, key, h, NULL, &entry)) { in hashmap_insert()
171 *old_key = entry->key; in hashmap_insert()
176 entry->key = key; in hashmap_insert()
198 entry->key = key; in hashmap_insert()
212 if (!hashmap_find_entry(map, key, h, NULL, &entry)) in hashmap_find()
220 bool hashmap_delete(struct hashmap *map, long key, in hashmap_delete() argument
227 if (!hashmap_find_entry(map, key, h, &pprev, &entry)) in hashmap_delete()
[all …]
/openbmc/linux/arch/x86/boot/
H A Dvideo.c102 int key; in get_entry() local
106 key = getchar(); in get_entry()
108 if (key == '\b') { in get_entry()
113 } else if ((key >= '0' && key <= '9') || in get_entry()
114 (key >= 'A' && key <= 'Z') || in get_entry()
115 (key >= 'a' && key <= 'z')) { in get_entry()
118 putchar(key); in get_entry()
131 v += (key > '9') ? key-'a'+10 : key-'0'; in get_entry()
202 int key; in mode_menu() local
211 if (key == ' ' || key == 0) in mode_menu()
[all …]
/openbmc/linux/include/keys/
H A Dasymmetric-type.h70 const struct asymmetric_key_ids *asymmetric_key_ids(const struct key *key) in asymmetric_key_ids() argument
72 return key->payload.data[asym_key_ids]; in asymmetric_key_ids()
76 const struct public_key *asymmetric_key_public_key(const struct key *key) in asymmetric_key_public_key() argument
78 return key->payload.data[asym_crypto]; in asymmetric_key_public_key()
81 extern struct key *find_asymmetric_key(struct key *keyring,
88 const struct key *keyring);
/openbmc/linux/fs/crypto/
H A Dkeysetup_v1.c91 static struct key *
98 struct key *key; in find_and_lock_process_key() local
109 if (IS_ERR(key)) in find_and_lock_process_key()
110 return key; in find_and_lock_process_key()
136 return key; in find_and_lock_process_key()
139 up_read(&key->sem); in find_and_lock_process_key()
140 key_put(key); in find_and_lock_process_key()
302 struct key *key; in fscrypt_setup_v1_file_key_via_subscribed_keyrings() local
314 if (IS_ERR(key)) in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
318 up_read(&key->sem); in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router_hw.c64 return memchr_inv(key, 0, sizeof(*key)) ? true : false; in prestera_nh_neigh_key_is_valid()
299 struct prestera_nh_neigh_key *key) in __prestera_nh_neigh_create() argument
308 memcpy(&neigh->key, key, sizeof(*key)); in __prestera_nh_neigh_create()
342 neigh = prestera_nh_neigh_find(sw, key); in prestera_nh_neigh_get()
404 memcpy(&nh_grp->key, key, sizeof(*key)); in __prestera_nexthop_group_create()
410 &nh_grp->key.neigh[nh_cnt]); in __prestera_nexthop_group_create()
585 fib_node->key.prefix_len); in __prestera_fib_node_destruct()
622 struct prestera_fib_key *key, in prestera_fib_node_create() argument
635 memcpy(&fib_node->key, key, sizeof(*key)); in prestera_fib_node_create()
665 key->prefix_len, grp_id); in prestera_fib_node_create()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_stacktrace_build_id.c14 __type(key, __u32);
21 __type(key, __u32);
31 __type(key, __u32);
38 __type(key, __u32);
47 __u32 key = 0, val = 0, *value_p; in oncpu() local
50 value_p = bpf_map_lookup_elem(&control_map, &key); in oncpu()
55 key = bpf_get_stackid(args, &stackmap, BPF_F_USER_STACK); in oncpu()
56 if ((int)key >= 0) { in oncpu()
57 bpf_map_update_elem(&stackid_hmap, &key, &val, 0); in oncpu()
58 stack_p = bpf_map_lookup_elem(&stack_amap, &key); in oncpu()
/openbmc/linux/lib/
H A Dsiphash.c28 v3 ^= key->key[1]; \
29 v2 ^= key->key[0]; \
30 v1 ^= key->key[1]; \
31 v0 ^= key->key[0];
156 const siphash_key_t *key) in siphash_3u64() argument
216 const siphash_key_t *key) in siphash_3u32() argument
280 const hsiphash_key_t *key) in __hsiphash_unaligned() argument
393 v3 ^= key->key[1]; \
394 v2 ^= key->key[0]; \
395 v1 ^= key->key[1]; \
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/freeradius/files/
H A D0013-raddb-certs-Makefile-fix-the-occasional-verification.patch10 chmod g+r ca.key
45 ca.key ca.pem: ca.cnf
52 chmod g+r ca.key
59 - $(OPENSSL) ca -gencrl -keyfile ca.key -cert ca.pem -config ./ca.cnf -out ca-crl.pem -key $(PASSWO…
69 server.csr server.key: server.cnf
72 chmod g+r server.key
74 server.crt: ca.key ca.pem server.csr
91 client.csr client.key: client.cnf
94 chmod g+r client.key
96 client.crt: ca.key ca.pem client.csr
[all …]

12345678910>>...211