/openbmc/qemu/hw/usb/ |
H A D | u2f-emulated.c | 107 key->pending_out_end = 0; in u2f_emulated_reset() 108 key->pending_out_num = 0; in u2f_emulated_reset() 122 ++key->pending_out_num; in u2f_pending_out_add() 137 --key->pending_out_num; in u2f_pending_out_get() 166 qemu_cond_wait(&key->key_cond, &key->key_mutex); in u2f_emulated_thread() 267 if (!u2f_emulated_setup_counter(key->counter, &key->synced_counter)) { in u2f_emulated_setup_vdev_manualy() 303 if (key->cert != NULL || key->privkey != NULL || key->entropy != NULL in u2f_emulated_realize() 305 if (key->cert != NULL && key->privkey != NULL in u2f_emulated_realize() 306 && key->entropy != NULL && key->counter != NULL) { in u2f_emulated_realize() 315 rc = u2f_emu_vdev_new_from_dir(&key->vdev, key->dir); in u2f_emulated_realize() [all …]
|
H A D | canokey.c | 70 CanoKeyState *key = base; in canokey_emu_stall_ep() local 80 CanoKeyState *key = base; in canokey_emu_set_address() local 81 key->dev.addr = addr; in canokey_emu_set_address() 89 CanoKeyState *key = base; in canokey_emu_prepare_receive() local 90 key->ep_out[ep] = pbuf; in canokey_emu_prepare_receive() 101 memcpy(key->ep_in[ep_in] + key->ep_in_size[ep_in], in canokey_emu_transmit() 177 memcpy(data, key->ep_in[0], key->ep_in_size[0]); in canokey_handle_control() 249 in_len = MIN(key->ep_in_size[ep_in] - key->ep_in_pos[ep_in], in canokey_handle_data() 252 key->ep_in[ep_in] + key->ep_in_pos[ep_in], in_len); in canokey_handle_data() 255 if (key->ep_in_pos[ep_in] == key->ep_in_size[ep_in]) { in canokey_handle_data() [all …]
|
H A D | u2f-passthru.c | 120 timer_del(&key->timer); in u2f_passthru_reset() 121 qemu_set_fd_handler(key->hidraw_fd, NULL, NULL, key); in u2f_passthru_reset() 134 u2f_passthru_reset(key); in u2f_timeout_check() 200 u2f_passthru_reset(key); in u2f_transaction_close() 251 qemu_set_fd_handler(key->hidraw_fd, u2f_passthru_read, NULL, key); in u2f_transaction_start() 252 timer_init_ms(&key->timer, QEMU_CLOCK_VIRTUAL, u2f_timeout_check, key); in u2f_transaction_start() 463 u2f_passthru_reset(key); in u2f_passthru_unrealize() 472 if (key->hidraw == NULL) { in u2f_passthru_realize() 497 key->hidraw_fd = fd; in u2f_passthru_realize() 498 u2f_passthru_reset(key); in u2f_passthru_realize() [all …]
|
/openbmc/linux/security/keys/ |
H A D | key.c | 39 void __key_check(const struct key *key) in __key_check() argument 42 key, key->magic, KEY_DEBUG_MAGIC); in __key_check() 231 struct key *key; in key_alloc() local 645 void key_put(struct key *key) in key_put() argument 662 struct key *key; in key_lookup() local 767 ret = key->type->update(key, prep); in __key_update() 806 struct key *keyring, *key = NULL; in __key_create_or_update() local 1092 ret = key->type->update(key, &prep); in key_update() 1117 void key_revoke(struct key *key) in key_revoke() argument 1132 key->type->revoke(key); in key_revoke() [all …]
|
H A D | request_key.c | 25 struct key *key = current->cached_requested_key; in check_cached_key() local 27 if (key && in check_cached_key() 36 static void cache_requested_key(struct key *key) in cache_requested_key() argument 62 struct key *key = rka->target_key; in complete_request_key() local 376 struct key *key; in construct_alloc_key() local 497 struct key *key; in construct_key_and_link() local 596 struct key *key; in request_key_and_link() local 613 if (key) in request_key_and_link() 711 struct key *key; in request_key_tag() local 753 struct key *key; in request_key_with_auxdata() local [all …]
|
H A D | gc.c | 72 void key_set_expiry(struct key *key, time64_t expiry) in key_set_expiry() argument 138 struct key *key = in key_gc_unused_keys() local 145 key_check(key); in key_gc_unused_keys() 148 remove_watch_list(key->watchers, key->serial); in key_gc_unused_keys() 154 key->type->destroy(key); in key_gc_unused_keys() 162 key->user->qnbytes -= key->quotalen; in key_gc_unused_keys() 174 memzero_explicit(key, sizeof(*key)); in key_gc_unused_keys() 198 struct key *key; in key_garbage_collector() local 226 key = rb_entry(cursor, struct key, serial_node); in key_garbage_collector() 250 key_serial(key), key->expiry - limit); in key_garbage_collector() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tunnel_kern.c | 83 __builtin_memset(&key, 0x0, sizeof(key)); in gre_set_tunnel() 105 __builtin_memset(&key, 0x0, sizeof(key)); in gre_set_tunnel_no_key() 142 __builtin_memset(&key, 0x0, sizeof(key)); in ip6gretap_set_tunnel() 174 key.tunnel_id, key.remote_ipv6[3], key.tunnel_label); in ip6gretap_get_tunnel() 186 __builtin_memset(&key, 0x0, sizeof(key)); in erspan_set_tunnel() 264 __builtin_memset(&key, 0x0, sizeof(key)); in ip4ip6erspan_set_tunnel() 352 __builtin_memset(&key, 0x0, sizeof(key)); in vxlan_set_tunnel_dst() 391 __builtin_memset(&key, 0x0, sizeof(key)); in vxlan_set_tunnel_src() 439 key.tunnel_id, key.local_ipv4, in vxlan_get_tunnel_src() 516 __builtin_memset(&key, 0x0, sizeof(key)); in ip6vxlan_set_tunnel_dst() [all …]
|
/openbmc/linux/crypto/ |
H A D | testmgr.h | 187 .key = 230 .key = 297 .key = 405 .key = 449 .key = 655 .key = 679 .key = 703 .key = 727 .key = 752 .key = [all …]
|
H A D | rsa_helper.c | 40 key->n = value; in rsa_get_n() 41 key->n_sz = vlen; in rsa_get_n() 52 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_e() 55 key->e = value; in rsa_get_e() 56 key->e_sz = vlen; in rsa_get_e() 67 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_d() 70 key->d = value; in rsa_get_d() 71 key->d_sz = vlen; in rsa_get_d() 85 key->p = value; in rsa_get_p() 100 key->q = value; in rsa_get_q() [all …]
|
/openbmc/linux/kernel/ |
H A D | jump_label.c | 72 jea->key = jeb->key - delta; in jump_label_swap() 76 jeb->key = tmp.key + delta; in jump_label_swap() 326 __static_key_slow_dec(&key->key); in jump_label_update_timeout() 367 key->timeout = rl; in jump_label_rate_limit() 449 key->type |= type; in static_key_set_entries() 557 if (iterk == key) in jump_label_init() 560 key = iterk; in jump_label_init() 605 key->next = mod; in static_key_set_mod() 606 key->type |= type; in static_key_set_mod() 680 if (iterk == key) in jump_label_add_module() [all …]
|
/openbmc/linux/drivers/net/wireless/silabs/wfx/ |
H A D | key.c | 38 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_pair() 49 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_group() 56 u8 *keybuf = key->key; in fill_tkip_pair() 72 u8 *keybuf = key->key; in fill_tkip_group() 95 memcpy(msg->aes_key_data, key->key, key->keylen); in fill_ccmp_pair() 103 memcpy(msg->aes_key_data, key->key, key->keylen); in fill_ccmp_group() 113 u8 *keybuf = key->key; in fill_sms4_pair() 128 u8 *keybuf = key->key; in fill_sms4_group() 143 memcpy(msg->igtk_key_data, key->key, key->keylen); in fill_aes_cmac_group() 172 k.type = fill_wep_group(&k.key.wep_group_key, key); in wfx_add_key() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_lru_map.c | 271 for (key = 1; key < end_key; key++) in test_lru_sanity1() 277 for (key = 1; key < end_key; key++) { in test_lru_sanity1() 289 for (; key < end_key; key++) { in test_lru_sanity1() 348 for (key = 1; key < end_key; key++) in test_lru_sanity2() 378 for (key = 1; key < end_key; key++) { in test_lru_sanity2() 392 for (key = 1 + tgt_free; key < end_key; key++) in test_lru_sanity2() 454 for (key = 1; key < end_key; key++) in test_lru_sanity3() 460 for (key = 1; key < end_key; key++) { in test_lru_sanity3() 512 for (key = 1; key <= 2 * tgt_free; key++) in test_lru_sanity4() 519 for (key = 1; key <= tgt_free; key++) { in test_lru_sanity4() [all …]
|
/openbmc/u-boot/lib/rsa/ |
H A D | rsa-mod-exp.c | 187 uint32_t val[key->len], acc[key->len], tmp[key->len]; in pow_mod() 192 for (i = 0, ptr = inout + key->len - 1; i < key->len; i++, ptr--) in pow_mod() 210 montgomery_mul(key, acc, val, key->rr); /* acc = a * RR / R mod n */ in pow_mod() 265 key.exponent = in rsa_mod_exp_sw() 274 if (key.len > RSA_MAX_KEY_BITS || key.len < RSA_MIN_KEY_BITS) { in rsa_mod_exp_sw() 280 uint32_t key1[key.len], key2[key.len]; in rsa_mod_exp_sw() 282 key.modulus = key1; in rsa_mod_exp_sw() 283 key.rr = key2; in rsa_mod_exp_sw() 285 rsa_convert_big_endian(key.rr, (uint32_t *)prop->rr, key.len); in rsa_mod_exp_sw() 286 if (!key.modulus || !key.rr) { in rsa_mod_exp_sw() [all …]
|
/openbmc/linux/include/linux/ |
H A D | key.h | 178 struct key *key; member 300 extern void key_revoke(struct key *key); 302 extern void key_put(struct key *key); 306 static inline struct key *__key_get(struct key *key) in __key_get() argument 312 static inline struct key *key_get(struct key *key) in key_get() argument 314 return key ? __key_get(key) : key; in key_get() 410 struct key *key); 412 extern int key_move(struct key *key, 418 struct key *key); 440 struct key *key); [all …]
|
H A D | jump_label.h | 83 __func__, (key)) 172 entry->key |= 2; in jump_entry_set_init() 174 entry->key &= ~2; in jump_entry_set_init() 286 STATIC_KEY_CHECK_USE(key); in static_key_fast_inc_not_disabled() 298 #define static_key_slow_inc(key) static_key_fast_inc_not_disabled(key) argument 302 STATIC_KEY_CHECK_USE(key); in static_key_slow_dec() 303 atomic_dec(&key->enabled); in static_key_slow_dec() 306 #define static_key_slow_inc_cpuslocked(key) static_key_slow_inc(key) argument 307 #define static_key_slow_dec_cpuslocked(key) static_key_slow_dec(key) argument 360 struct static_key key; member [all …]
|
H A D | key-type.h | 51 bool (*cmp)(const struct key *key, 95 int (*instantiate)(struct key *key, struct key_preparsed_payload *prep); 102 int (*update)(struct key *key, struct key_preparsed_payload *prep); 117 void (*revoke)(struct key *key); 120 void (*destroy)(struct key *key); 123 void (*describe)(const struct key *key, struct seq_file *p); 132 long (*read)(const struct key *key, char *buffer, size_t buflen); 170 extern int key_payload_reserve(struct key *key, size_t datalen); 171 extern int key_instantiate_and_link(struct key *key, 176 extern int key_reject_and_link(struct key *key, [all …]
|
/openbmc/linux/net/mac80211/ |
H A D | key.c | 242 if (!key || !key->local->ops->set_key) in ieee80211_key_disable_hw_accel() 365 if (!key) in __ieee80211_set_default_key() 604 if (!key) in ieee80211_key_alloc() 738 memcpy(key->conf.key, key_data, key_len); in ieee80211_key_alloc() 791 if (!key) in ieee80211_key_destroy() 805 if (!key) in ieee80211_key_free_unused() 808 WARN_ON(key->sdata || key->local); in ieee80211_key_free_unused() 950 if (!key) in ieee80211_key_free() 957 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_key_free() 1004 if (key->sta && key->sta->removed) in ieee80211_key_iter() [all …]
|
/openbmc/linux/net/openvswitch/ |
H A D | flow.c | 694 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4() 714 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4() 731 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4() 740 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4() 748 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4() 759 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4() 787 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4() 827 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4() 841 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4() 855 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4() [all …]
|
/openbmc/linux/drivers/s390/crypto/ |
H A D | zcrypt_cca_key.h | 112 } __packed *key = p; in zcrypt_type6_mex_key_en() local 124 memset(key, 0, sizeof(*key)); in zcrypt_type6_mex_key_en() 130 ptr = key->exponent; in zcrypt_type6_mex_key_en() 141 key->pubsec.section_length = sizeof(key->pubsec) + in zcrypt_type6_mex_key_en() 144 key->pubsec.section_length + sizeof(key->pubhdr); in zcrypt_type6_mex_key_en() 145 key->t6_hdr.ulen = key->pubhdr.token_length + 4; in zcrypt_type6_mex_key_en() 146 key->t6_hdr.blen = key->pubhdr.token_length + 6; in zcrypt_type6_mex_key_en() 185 memset(key, 0, sizeof(*key)); in zcrypt_type6_crt_key() 203 key->pvt.section_length = sizeof(key->pvt) + key_len; in zcrypt_type6_crt_key() 206 key->pvt.p_len = key->pvt.dp_len = key->pvt.u_len = long_len; in zcrypt_type6_crt_key() [all …]
|
/openbmc/linux/lib/ |
H A D | test_static_keys.c | 129 .key = &true_key.key, in test_key_func() 134 .key = &true_key.key, in test_key_func() 139 .key = &false_key.key, in test_key_func() 144 .key = &false_key.key, in test_key_func() 171 .key = &base_true_key.key, in test_key_func() 176 .key = &base_true_key.key, in test_key_func() 181 .key = &base_inv_true_key.key, in test_key_func() 186 .key = &base_inv_true_key.key, in test_key_func() 191 .key = &base_false_key.key, in test_key_func() 196 .key = &base_false_key.key, in test_key_func() [all …]
|
/openbmc/linux/net/ceph/ |
H A D | crypto.c | 28 key->key = NULL; in set_secret() 40 if (!key->len) in set_secret() 43 key->key = kmemdup(buf, key->len, GFP_NOIO); in set_secret() 44 if (!key->key) { in set_secret() 59 ret = crypto_sync_skcipher_setkey(key->tfm, key->key, key->len); in set_secret() 85 ceph_encode_copy(p, key->key, key->len); in ceph_crypto_key_encode() 131 key->type, key->len); in ceph_crypto_key_unarmor() 137 if (key) { in ceph_crypto_key_destroy() 138 kfree_sensitive(key->key); in ceph_crypto_key_destroy() 139 key->key = NULL; in ceph_crypto_key_destroy() [all …]
|
/openbmc/linux/security/selinux/ss/ |
H A D | avtab.c | 78 newnode->key = *key; in avtab_insert_node() 120 if (key->source_type == cur->key.source_type && in avtab_insert() 121 key->target_type == cur->key.target_type && in avtab_insert() 129 if (key->source_type < cur->key.source_type) in avtab_insert() 131 if (key->source_type == cur->key.source_type && in avtab_insert() 132 key->target_type < cur->key.target_type) in avtab_insert() 136 key->target_class < cur->key.target_class) in avtab_insert() 170 if (key->source_type < cur->key.source_type) in avtab_insert_nonunique() 173 key->target_type < cur->key.target_type) in avtab_insert_nonunique() 205 if (key->source_type < cur->key.source_type) in avtab_search_node() [all …]
|
/openbmc/u-boot/lib/libavb/ |
H A D | avb_rsa.c | 25 IAvbKey* key = NULL; in iavb_parse_key_data() local 56 if (key == NULL) { in iavb_parse_key_data() 63 key->rr = key->n + key->len; in iavb_parse_key_data() 70 key->n[i] = avb_be32toh(((uint32_t*)n)[key->len - i - 1]); in iavb_parse_key_data() 71 key->rr[i] = avb_be32toh(((uint32_t*)rr)[key->len - i - 1]); in iavb_parse_key_data() 73 return key; in iavb_parse_key_data() 76 if (key != NULL) { in iavb_parse_key_data() 77 avb_free(key); in iavb_parse_key_data() 83 avb_free(key); in iavb_free_parsed_key() 133 subM(key, c); in montMulAdd() [all …]
|
/openbmc/linux/fs/ubifs/ |
H A D | key.h | 93 key->u32[0] = inum; in ino_key_init() 122 key->u32[0] = inum; in lowest_ino_key() 123 key->u32[1] = 0; in lowest_ino_key() 135 key->u32[0] = inum; in highest_ino_key() 153 key->u32[0] = inum; in dent_key_init() 170 key->u32[0] = inum; in dent_key_init_hash() 204 key->u32[0] = inum; in lowest_dent_key() 222 key->u32[0] = inum; in xent_key_init() 255 key->u32[0] = inum; in lowest_xent_key() 271 key->u32[0] = inum; in data_key_init() [all …]
|
/openbmc/u-boot/fs/ubifs/ |
H A D | key.h | 87 key->u32[0] = inum; in ino_key_init() 116 key->u32[0] = inum; in lowest_ino_key() 117 key->u32[1] = 0; in lowest_ino_key() 129 key->u32[0] = inum; in highest_ino_key() 147 key->u32[0] = inum; in dent_key_init() 164 key->u32[0] = inum; in dent_key_init_hash() 197 key->u32[0] = inum; in lowest_dent_key() 215 key->u32[0] = inum; in xent_key_init() 248 key->u32[0] = inum; in lowest_xent_key() 264 key->u32[0] = inum; in data_key_init() [all …]
|