/linux-master/arch/arm/include/asm/ |
H A D | jump_label.h | 12 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) argument 19 : : "i" (&((char *)key)[branch]) : : l_yes); 26 static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) argument 33 : : "i" (&((char *)key)[branch]) : : l_yes); 45 jump_label_t key; member in struct:jump_entry
|
/linux-master/arch/arc/include/asm/ |
H A D | jump_label.h | 31 static __always_inline bool arch_static_branch(struct static_key *key, argument 40 : : "i" (&((char *)key)[branch]) : : l_yes); 47 static __always_inline bool arch_static_branch_jump(struct static_key *key, argument 56 : : "i" (&((char *)key)[branch]) : : l_yes); 68 jump_label_t key; member in struct:jump_entry
|
/linux-master/arch/xtensa/include/asm/ |
H A D | jump_label.h | 13 static __always_inline bool arch_static_branch(struct static_key *key, argument 21 : : "i" (&((char *)key)[branch]) : : l_yes); 28 static __always_inline bool arch_static_branch_jump(struct static_key *key, argument 49 : : "i" (&((char *)key)[branch]) : : l_yes); 61 jump_label_t key; member in struct:jump_entry
|
/linux-master/security/integrity/ |
H A D | digsig_asymmetric.c | 11 #include <linux/key-type.h> 20 * Request an asymmetric key. 22 static struct key *request_asymmetric_key(struct key *keyring, uint32_t keyid) 24 struct key *key; local 29 pr_debug("key search: \"%s\"\n", name); 31 key = get_ima_blacklist_keyring(); 32 if (key) { 35 kref = keyring_search(make_key_ref(key, 88 struct key *key; local [all...] |
/linux-master/crypto/ |
H A D | rsa_helper.c | 3 * RSA key extract helper 19 struct rsa_key *key = context; local 23 /* invalid key provided */ 33 /* In FIPS mode only allow key size 2K and higher */ 35 pr_err("RSA: key size not allowed in FIPS mode\n"); 40 key->n = value; 41 key->n_sz = vlen; 49 struct rsa_key *key = context; local 51 /* invalid key provided */ 52 if (!value || !key 64 struct rsa_key *key = context; local 79 struct rsa_key *key = context; local 94 struct rsa_key *key = context; local 109 struct rsa_key *key = context; local 124 struct rsa_key *key = context; local 139 struct rsa_key *key = context; local 162 rsa_parse_pub_key(struct rsa_key *rsa_key, const void *key, unsigned int key_len) argument 181 rsa_parse_priv_key(struct rsa_key *rsa_key, const void *key, unsigned int key_len) argument [all...] |
/linux-master/include/crypto/internal/ |
H A D | chacha.h | 11 u32 key[8]; member in struct:chacha_ctx 15 static inline int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 24 for (i = 0; i < ARRAY_SIZE(ctx->key); i++) 25 ctx->key[i] = get_unaligned_le32(key + i * sizeof(u32)); 31 static inline int chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 34 return chacha_setkey(tfm, key, keysize, 20); 37 static inline int chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 40 return chacha_setkey(tfm, key, keysize, 12);
|
/linux-master/include/linux/ |
H A D | key.h | 2 /* Authentication token and access key management 27 /* key handle serial number */ 30 /* key handle permissions mask */ 33 struct key; 40 #define KEY_POS_VIEW 0x01000000 /* possessor can view a key's attributes */ 41 #define KEY_POS_READ 0x02000000 /* possessor can read key payload / view keyring */ 42 #define KEY_POS_WRITE 0x04000000 /* possessor can update key payload / add link to keyring */ 43 #define KEY_POS_SEARCH 0x08000000 /* possessor can find a key in search / search a keyring */ 44 #define KEY_POS_LINK 0x10000000 /* possessor can create a link to a key/keyring */ 45 #define KEY_POS_SETATTR 0x20000000 /* possessor can set key attribute 155 make_key_ref(const struct key *key, bool possession) argument 178 struct key *key; member in struct:key_restriction 195 struct key { struct 306 __key_get(struct key *key) argument 312 key_get(struct key *key) argument 447 key_serial(const struct key *key) argument 458 key_read_state(const struct key *key) argument 471 key_is_positive(const struct key *key) argument 476 key_is_negative(const struct key *key) argument [all...] |
H A D | jump_label.h | 23 * DEFINE_STATIC_KEY_TRUE(key); 24 * DEFINE_STATIC_KEY_FALSE(key); 32 * define a "key" that is initially false via "DEFINE_STATIC_KEY_FALSE(key)", 33 * an "if (static_branch_unlikely(&key))" statement is an unconditional branch 35 * Similarly, we can define an initially true key via 36 * "DEFINE_STATIC_KEY_TRUE(key)", and use it in the same 37 * "if (static_branch_unlikely(&key))", in which case we will generate an 42 * At runtime we can change the branch target by setting the key 47 * initially false key tha 120 long key; // key may be far away from the core kernel under KASLR member in struct:jump_entry 205 static_key_false(struct static_key *key) argument 210 static_key_true(struct static_key *key) argument 258 static_key_count(struct static_key *key) argument 268 static_key_false(struct static_key *key) argument 275 static_key_true(struct static_key *key) argument 282 static_key_fast_inc_not_disabled(struct static_key *key) argument 300 static_key_slow_dec(struct static_key *key) argument 317 static_key_enable(struct static_key *key) argument 328 static_key_disable(struct static_key *key) argument 360 struct static_key key; member in struct:static_key_true 364 struct static_key key; member in struct:static_key_false [all...] |
H A D | sysrq.h | 11 * overhauled to use key registration 42 * ASCII code of the key, pointer to registers and kbd/tty structs (if they 46 void handle_sysrq(u8 key); 47 void __handle_sysrq(u8 key, bool check_mask); 48 int register_sysrq_key(u8 key, const struct sysrq_key_op *op); 49 int unregister_sysrq_key(u8 key, const struct sysrq_key_op *op); 57 static inline void handle_sysrq(u8 key) argument 61 static inline void __handle_sysrq(u8 key, bool check_mask) argument 65 static inline int register_sysrq_key(u8 key, const struct sysrq_key_op *op) argument 70 static inline int unregister_sysrq_key(u8 key, cons argument [all...] |
H A D | nvme-keyring.h | 11 key_serial_t nvme_tls_psk_default(struct key *keyring, 18 static inline key_serial_t nvme_tls_psk_default(struct key *keyring,
|
/linux-master/include/crypto/ |
H A D | public_key.h | 2 /* Asymmetric public-key algorithm definitions 18 * Cryptographic data for the public-key subtype of the asymmetric key type. 20 * Note that this may include private part of the key as well as the public 24 void *key; member in struct:public_key 32 unsigned long key_eflags; /* key extension flags */ 38 extern void public_key_free(struct public_key *key); 41 * Public key cryptography signature data 58 struct key; 62 extern int restrict_link_by_signature(struct key *dest_keyrin [all...] |
H A D | sm2.h | 3 * sm2.h - SM2 asymmetric public-key algorithm 18 const void *key, unsigned int keylen, void *dgst); 21 const void *key, unsigned int keylen, 20 sm2_compute_z_digest(struct shash_desc *desc, const void *key, unsigned int keylen, void *dgst) argument
|
/linux-master/net/mac80211/ |
H A D | key.c | 36 * each station key also belongs to that interface. 39 * that are implemented in software, for each key the hardware is asked 40 * to enable that key for offloading but if it cannot do that the key is 43 * There is currently no way of knowing whether a key is handled in SW 46 * All key management is internally protected by a mutex. Within all 47 * other parts of mac80211, key references are, just as STA structure 49 * unprotected, namely the key->sta dereferences within the hardware 51 * remove the key which waits for an RCU grace period. 82 * 1. SKB resize was skipped because no key wa 120 ieee80211_key_enable_hw_accel(struct ieee80211_key *key) argument 228 ieee80211_key_disable_hw_accel(struct ieee80211_key *key) argument 267 _ieee80211_set_tx_key(struct ieee80211_key *key, bool force) argument 285 ieee80211_set_tx_key(struct ieee80211_key *key) argument 351 struct ieee80211_key *key = NULL; local 388 struct ieee80211_key *key = NULL; local 414 struct ieee80211_key *key = NULL; local 591 struct ieee80211_key *key; local 740 ieee80211_key_free_common(struct ieee80211_key *key) argument 763 __ieee80211_key_destroy(struct ieee80211_key *key, bool delay_tailroom) argument 785 ieee80211_key_destroy(struct ieee80211_key *key, bool delay_tailroom) argument 800 ieee80211_key_free_unused(struct ieee80211_key *key) argument 842 ieee80211_key_link(struct ieee80211_key *key, struct ieee80211_link_data *link, struct sta_info *sta) argument 950 ieee80211_key_free(struct ieee80211_key *key, bool delay_tailroom) argument 967 struct ieee80211_key *key; local 990 ieee80211_iter_keys(struct ieee80211_hw *hw, struct ieee80211_vif *vif, void (*iter)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key, void *data), void *iter_data) argument 1000 struct ieee80211_key *key, *tmp; local 1023 _ieee80211_iter_keys_rcu(struct ieee80211_hw *hw, struct ieee80211_sub_if_data *sdata, void (*iter)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key, void *data), void *iter_data) argument 1032 struct ieee80211_key *key; local 1047 ieee80211_iter_keys_rcu(struct ieee80211_hw *hw, struct ieee80211_vif *vif, void (*iter)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key, void *data), void *iter_data) argument 1072 struct ieee80211_key *key, *tmp; local 1096 struct ieee80211_key *key, *tmp; local 1113 struct ieee80211_key *key, *tmp; local 1127 struct ieee80211_key *key, *tmp; local 1171 struct ieee80211_key *key; local 1242 struct ieee80211_key *key; local 1295 struct ieee80211_key *key; local 1350 struct ieee80211_key *key; local 1380 struct ieee80211_key *key; local 1416 struct ieee80211_key *key; local 1438 struct ieee80211_key *key; local 1467 struct ieee80211_key *key; local [all...] |
H A D | debugfs_key.h | 6 void ieee80211_debugfs_key_add(struct ieee80211_key *key); 7 void ieee80211_debugfs_key_remove(struct ieee80211_key *key); 17 void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, 20 static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key) argument 22 static inline void ieee80211_debugfs_key_remove(struct ieee80211_key *key) argument 39 static inline void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, argument
|
/linux-master/drivers/staging/vt6656/ |
H A D | key.c | 19 #include "key.h" 35 struct ieee80211_key_conf *key, u32 key_type, 43 u8 key_inx = key->keyidx; 56 key->hw_key_idx = i; 57 entry = key->hw_key_idx; 65 /* default key last entry */ 67 key->hw_key_idx = entry; 86 if (key->keylen == WLAN_KEY_LEN_WEP40) 87 key->key[1 34 vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr, struct ieee80211_key_conf *key, u32 key_type, u32 mode) argument 96 vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta, struct ieee80211_vif *vif, struct ieee80211_key_conf *key) argument [all...] |
/linux-master/drivers/staging/vt6655/ |
H A D | key.c | 14 #include "key.h" 18 struct ieee80211_key_conf *key, u32 key_type, 26 u8 key_inx = key->keyidx; 39 key->hw_key_idx = i; 40 entry = key->hw_key_idx; 48 /* default key last entry */ 50 key->hw_key_idx = entry; 76 if (key->keylen == WLAN_KEY_LEN_WEP40) 77 key->key[1 17 vnt_set_keymode(struct ieee80211_hw *hw, u8 *mac_addr, struct ieee80211_key_conf *key, u32 key_type, u32 mode, bool onfly_latch) argument 88 vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta, struct ieee80211_vif *vif, struct ieee80211_key_conf *key) argument 139 key, VNT_KEY_GROUP_ADDRESS, key_dec_mode, true); local [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | jump_label.h | 25 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) argument 30 : : "i" (key), "i" (2 | branch) : : l_yes); 39 static __always_inline bool arch_static_branch(struct static_key * const key, const bool branch) argument 44 : : "i" (key), "i" (branch) : : l_yes); 53 static __always_inline bool arch_static_branch_jump(struct static_key * const key, const bool branch) argument 58 : : "i" (key), "i" (branch) : : l_yes);
|
/linux-master/security/keys/ |
H A D | key.c | 2 /* Basic authentication token and access key management 26 unsigned int key_quota_root_maxkeys = 1000000; /* root's key count quota */ 27 unsigned int key_quota_root_maxbytes = 25000000; /* root's key space quota */ 28 unsigned int key_quota_maxkeys = 200; /* general key count quota */ 29 unsigned int key_quota_maxbytes = 20000; /* general key space quota */ 34 /* We serialise key instantiation and link */ 38 void __key_check(const struct key *key) argument 40 printk("__key_check: key %p {%08x} should be {%08x}\n", 41 key, ke 133 key_alloc_serial(struct key *key) argument 230 struct key *key; local 372 key_payload_reserve(struct key *key, size_t datalen) argument 409 mark_key_instantiated(struct key *key, int reject_error) argument 424 __key_instantiate_and_link(struct key *key, struct key_preparsed_payload *prep, struct key *keyring, struct key *authkey, struct assoc_array_edit **_edit) argument 495 key_instantiate_and_link(struct key *key, const void *data, size_t datalen, struct key *keyring, struct key *authkey) argument 571 key_reject_and_link(struct key *key, unsigned timeout, unsigned error, struct key *keyring, struct key *authkey) argument 643 key_put(struct key *key) argument 660 struct key *key; local 720 key_set_timeout(struct key *key, unsigned timeout) argument 752 struct key *key = key_ref_to_ptr(key_ref); local 805 struct key *keyring, *key = NULL; local 1063 struct key *key = key_ref_to_ptr(key_ref); local 1115 key_revoke(struct key *key) argument 1151 key_invalidate(struct key *key) argument 1178 generic_key_instantiate(struct key *key, struct key_preparsed_payload *prep) argument [all...] |
/linux-master/kernel/ |
H A D | jump_label.c | 41 * Entrires are sorted by key. 72 jea->key = jeb->key - delta; 76 jeb->key = tmp.key + delta; 93 static void jump_label_update(struct static_key *key); 104 int static_key_count(struct static_key *key) argument 110 int n = atomic_read(&key->enabled); 117 * static_key_fast_inc_not_disabled - adds a user for a static key 118 * @key 127 static_key_fast_inc_not_disabled(struct static_key *key) argument 148 static_key_slow_inc_cpuslocked(struct static_key *key) argument 181 static_key_slow_inc(struct static_key *key) argument 192 static_key_enable_cpuslocked(struct static_key *key) argument 215 static_key_enable(struct static_key *key) argument 223 static_key_disable_cpuslocked(struct static_key *key) argument 240 static_key_disable(struct static_key *key) argument 248 static_key_slow_try_dec(struct static_key *key) argument 267 __static_key_slow_dec_cpuslocked(struct static_key *key) argument 280 __static_key_slow_dec(struct static_key *key) argument 289 struct static_key_deferred *key = local 295 static_key_slow_dec(struct static_key *key) argument 302 static_key_slow_dec_cpuslocked(struct static_key *key) argument 308 __static_key_slow_dec_deferred(struct static_key *key, struct delayed_work *work, unsigned long timeout) argument 321 __static_key_deferred_flush(void *key, struct delayed_work *work) argument 328 jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl) argument 371 static_key_entries(struct static_key *key) argument 377 static_key_type(struct static_key *key) argument 382 static_key_linked(struct static_key *key) argument 387 static_key_clear_linked(struct static_key *key) argument 392 static_key_set_linked(struct static_key *key) argument 406 static_key_set_entries(struct static_key *key, struct jump_entry *entries) argument 419 struct static_key *key = jump_entry_key(entry); local 454 __jump_label_update(struct static_key *key, struct jump_entry *entry, struct jump_entry *stop, bool init) argument 465 __jump_label_update(struct static_key *key, struct jump_entry *entry, struct jump_entry *stop, bool init) argument 491 struct static_key *key = NULL; local 537 struct static_key *key = jump_entry_key(entry); local 551 static_key_mod(struct static_key *key) argument 563 static_key_set_mod(struct static_key *key, struct static_key_mod *mod) argument 598 __jump_label_mod_update(struct static_key *key) argument 628 struct static_key *key = NULL; local 690 struct static_key *key = NULL; local 805 jump_label_update(struct static_key *key) argument [all...] |
/linux-master/tools/perf/arch/x86/util/ |
H A D | kvm-stat.c | 31 struct event_key *key) 33 key->key = evsel__intval(evsel, sample, "gpa"); 34 key->info = evsel__intval(evsel, sample, "type"); 42 struct perf_sample *sample, struct event_key *key) 51 mmio_event_get_key(evsel, sample, key); 59 struct event_key *key) 68 mmio_event_get_key(evsel, sample, key); 76 struct event_key *key, 80 (unsigned long)key 30 mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 41 mmio_event_begin(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 58 mmio_event_end(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 75 mmio_event_decode_key(struct perf_kvm_stat *kvm __maybe_unused, struct event_key *key, char *decode) argument 92 ioport_event_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 100 ioport_event_begin(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 119 ioport_event_decode_key(struct perf_kvm_stat *kvm __maybe_unused, struct event_key *key, char *decode) argument 136 msr_event_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 144 msr_event_begin(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 163 msr_event_decode_key(struct perf_kvm_stat *kvm __maybe_unused, struct event_key *key, char *decode) argument [all...] |
/linux-master/tools/perf/arch/arm64/util/ |
H A D | kvm-stat.c | 26 struct event_key *key) 28 key->info = 0; 29 key->key = evsel__intval(evsel, sample, kvm_exit_reason); 30 key->exit_reasons = arm64_exit_reasons; 37 if (key->key == ARM_EXCEPTION_TRAP) { 38 key->key = evsel__intval(evsel, sample, kvm_trap_exit_reason); 39 key 24 event_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 50 event_end(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument [all...] |
/linux-master/crypto/asymmetric_keys/ |
H A D | x509_loader.c | 4 #include <linux/key.h> 9 const struct key *keyring) 11 key_ref_t key; local 31 key = key_create_or_update(make_key_ref(keyring, 1), 41 if (IS_ERR(key)) { 43 PTR_ERR(key)); 46 key_ref_to_ptr(key)->description); 47 key_ref_put(key);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tunnel_kern.c | 41 __type(key, __u32); 49 struct bpf_tunnel_key key; local 51 __builtin_memset(&key, 0x0, sizeof(key)); 52 key.remote_ipv4 = 0xac100164; /* 172.16.1.100 */ 53 key.tunnel_id = 2; 54 key.tunnel_tos = 0; 55 key.tunnel_ttl = 64; 57 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), 71 struct bpf_tunnel_key key; local 92 struct bpf_tunnel_key key; local 107 struct bpf_tunnel_key key; local 131 struct bpf_tunnel_key key; local 150 struct bpf_tunnel_key key; local 193 struct bpf_tunnel_key key; local 229 struct bpf_tunnel_key key; local 273 struct bpf_tunnel_key key; local 310 struct bpf_tunnel_key key; local 349 struct bpf_tunnel_key key; local 389 struct bpf_tunnel_key key; local 475 struct bpf_tunnel_key key; local 506 struct bpf_tunnel_key key; local 537 struct bpf_tunnel_key key; local 574 struct bpf_tunnel_key key; local 612 struct bpf_tunnel_key key; local 633 struct bpf_tunnel_key key; local 671 struct bpf_tunnel_key key; local 695 struct bpf_tunnel_key key = {}; local 725 struct bpf_tunnel_key key; local 740 struct bpf_tunnel_key key = {}; local 777 struct bpf_tunnel_key key = {}; local 815 struct bpf_tunnel_key key = {}; local 842 struct bpf_tunnel_key key = {}; local 874 struct bpf_tunnel_key key; local 891 struct bpf_tunnel_key key = {}; local 922 struct bpf_tunnel_key key; local [all...] |
/linux-master/scripts/kconfig/ |
H A D | mnconf-common.h | 14 int next_jump_key(int key); 15 int handle_search_keys(int key, size_t start, size_t end, void *_data);
|
/linux-master/net/ceph/ |
H A D | crypto.c | 11 #include <linux/key-type.h> 20 * Set ->key and ->tfm. The rest of the key should be filled in before 23 static int set_secret(struct ceph_crypto_key *key, void *buf) argument 28 key->key = NULL; 29 key->tfm = NULL; 31 switch (key->type) { 40 if (!key->len) 43 key 77 ceph_crypto_key_encode(struct ceph_crypto_key *key, void **p, void *end) argument 89 ceph_crypto_key_decode(struct ceph_crypto_key *key, void **p, void *end) argument 108 ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *inkey) argument 135 ceph_crypto_key_destroy(struct ceph_crypto_key *key) argument 219 ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, void *buf, int buf_len, int in_len, int *pout_len) argument 283 ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, void *buf, int buf_len, int in_len, int *pout_len) argument 337 ceph_key_destroy(struct key *key) argument [all...] |