/linux-6.1.9/crypto/ |
D | rsa-pkcs1pad.c | 93 unsigned int key_size; member 113 ctx->key_size = 0; in pkcs1pad_set_pub_key() 124 ctx->key_size = err; in pkcs1pad_set_pub_key() 134 ctx->key_size = 0; in pkcs1pad_set_priv_key() 145 ctx->key_size = err; in pkcs1pad_set_priv_key() 159 return ctx->key_size; in pkcs1pad_get_max_size() 187 pad_len = ctx->key_size - len; in pkcs1pad_encrypt_sign_complete() 193 out_buf = kzalloc(ctx->key_size, GFP_KERNEL); in pkcs1pad_encrypt_sign_complete() 201 sg_nents_for_len(req->dst, ctx->key_size), in pkcs1pad_encrypt_sign_complete() 202 out_buf, ctx->key_size); in pkcs1pad_encrypt_sign_complete() [all …]
|
D | dh_helper.c | 31 return p->key_size + p->p_size + p->g_size; in dh_data_size() 53 ptr = dh_pack_data(ptr, end, ¶ms->key_size, in crypto_dh_encode_key() 54 sizeof(params->key_size)); in crypto_dh_encode_key() 57 ptr = dh_pack_data(ptr, end, params->key, params->key_size); in crypto_dh_encode_key() 78 ptr = dh_unpack_data(¶ms->key_size, ptr, sizeof(params->key_size)); in __crypto_dh_decode_key() 88 params->p = (void *)(ptr + params->key_size); in __crypto_dh_decode_key() 89 params->g = (void *)(ptr + params->key_size + params->p_size); in __crypto_dh_decode_key() 106 if (params->key_size > params->p_size || in crypto_dh_decode_key()
|
D | ecdh_helper.c | 29 return ECDH_KPP_SECRET_MIN_SIZE + params->key_size; in crypto_ecdh_key_len() 49 ptr = ecdh_pack_data(ptr, ¶ms->key_size, sizeof(params->key_size)); in crypto_ecdh_encode_key() 50 ecdh_pack_data(ptr, params->key, params->key_size); in crypto_ecdh_encode_key() 72 ptr = ecdh_unpack_data(¶ms->key_size, ptr, sizeof(params->key_size)); in crypto_ecdh_decode_key()
|
D | ecdh.c | 33 params.key_size > sizeof(u64) * ctx->ndigits) in ecdh_set_secret() 36 if (!params.key || !params.key_size) in ecdh_set_secret() 40 memcpy(ctx->private_key, params.key, params.key_size); in ecdh_set_secret() 43 ctx->private_key, params.key_size) < 0) { in ecdh_set_secret() 44 memzero_explicit(ctx->private_key, params.key_size); in ecdh_set_secret()
|
/linux-6.1.9/kernel/bpf/ |
D | hashtab.c | 194 static inline void htab_elem_set_ptr(struct htab_elem *l, u32 key_size, in htab_elem_set_ptr() argument 197 *(void __percpu **)(l->key + key_size) = pptr; in htab_elem_set_ptr() 200 static inline void __percpu *htab_elem_get_ptr(struct htab_elem *l, u32 key_size) in htab_elem_get_ptr() argument 202 return *(void __percpu **)(l->key + key_size); in htab_elem_get_ptr() 207 return *(void **)(l->key + roundup(map->key_size, 8)); in fd_htab_map_get_ptr() 235 round_up(htab->map.key_size, 8) + in htab_free_prealloced_timers() 255 bpf_map_free_kptrs(&htab->map, elem->key + round_up(htab->map.key_size, 8)); in htab_free_prealloced_kptrs() 271 htab->map.key_size); in htab_free_elems() 298 memcpy(l->key, key, htab->map.key_size); in prealloc_lru_pop() 329 htab_elem_set_ptr(get_htab_elem(htab, i), htab->map.key_size, in prealloc_init() [all …]
|
D | map_in_map.c | 49 inner_map_meta->key_size = inner_map->key_size; in bpf_map_meta_alloc() 85 meta0->key_size == meta1->key_size && in bpf_map_meta_equal()
|
D | map_iter.c | 105 u32 key_acc_size, value_acc_size, key_size, value_size; in bpf_iter_attach_map() local 128 key_size = map->key_size; in bpf_iter_attach_map() 134 if (key_acc_size > key_size || value_acc_size > value_size) { in bpf_iter_attach_map()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 427 size_t key_size; in test_lpm_delete() local 431 key_size = sizeof(*key) + sizeof(__u32); in test_lpm_delete() 432 key = alloca(key_size); in test_lpm_delete() 435 key_size, sizeof(value), in test_lpm_delete() 536 size_t key_size; in test_lpm_get_next_key() local 540 key_size = sizeof(*key_p) + sizeof(__u32); in test_lpm_get_next_key() 541 key_p = alloca(key_size); in test_lpm_get_next_key() 542 next_key_p = alloca(key_size); in test_lpm_get_next_key() 544 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, key_size, sizeof(value), 100, &opts); in test_lpm_get_next_key() 555 memset(key_p, 0, key_size); in test_lpm_get_next_key() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | btf.c | 68 __u32 key_size; member 136 .key_size = sizeof(int), 191 .key_size = sizeof(int), 216 .key_size = sizeof(int), 257 .key_size = sizeof(int), 302 .key_size = sizeof(int), 324 .key_size = sizeof(int), 346 .key_size = sizeof(int), 368 .key_size = sizeof(int), 393 .key_size = sizeof(int), [all …]
|
/linux-6.1.9/tools/bpf/bpftool/ |
D | map.c | 140 print_hex_data_json(key, info->key_size); in print_entry_json() 160 print_hex_data_json(key, info->key_size); in print_entry_json() 198 break_names = info->key_size > 16 || msg_size > 16; in print_entry_error_msg() 199 single_line = info->key_size + msg_size <= 24 && !break_names; in print_entry_error_msg() 202 fprint_hex(stdout, key, info->key_size, " "); in print_entry_error_msg() 225 print_hex_data_json(key, map_info->key_size); in print_entry_error() 251 break_names = info->key_size > 16 || info->value_size > 16; in print_entry_plain() 252 single_line = info->key_size + info->value_size <= 24 && in print_entry_plain() 255 if (info->key_size) { in print_entry_plain() 257 fprint_hex(stdout, key, info->key_size, " "); in print_entry_plain() [all …]
|
/linux-6.1.9/tools/lib/bpf/ |
D | libbpf_probes.c | 194 int key_size, value_size, max_entries; in probe_map_create() local 198 key_size = sizeof(__u32); in probe_map_create() 207 key_size = sizeof(__u64); in probe_map_create() 213 key_size = sizeof(struct bpf_cgroup_storage_key); in probe_map_create() 219 key_size = 0; in probe_map_create() 235 key_size = 0; in probe_map_create() 245 key_size = 0; in probe_map_create() 288 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, &opts); in probe_map_create()
|
/linux-6.1.9/tools/perf/util/bpf_skel/ |
D | func_latency.bpf.c | 12 __uint(key_size, sizeof(__u64)); 19 __uint(key_size, sizeof(__u32)); 26 __uint(key_size, sizeof(__u32)); 33 __uint(key_size, sizeof(__u32));
|
D | bperf_leader.bpf.c | 9 __uint(key_size, sizeof(__u32)); 16 __uint(key_size, sizeof(__u32)); 23 __uint(key_size, sizeof(__u32));
|
D | bperf_follower.bpf.c | 10 __uint(key_size, sizeof(__u32)); 17 __uint(key_size, sizeof(__u32)); 24 __uint(key_size, sizeof(__u32));
|
D | lock_contention.bpf.c | 36 __uint(key_size, sizeof(__u32)); 52 __uint(key_size, sizeof(struct contention_key)); 59 __uint(key_size, sizeof(__u32)); 66 __uint(key_size, sizeof(__u32));
|
D | bpf_prog_profiler.bpf.c | 10 __uint(key_size, sizeof(__u32)); 17 __uint(key_size, sizeof(__u32)); 25 __uint(key_size, sizeof(__u32));
|
D | off_cpu.bpf.c | 37 __uint(key_size, sizeof(__u32)); 51 __uint(key_size, sizeof(struct offcpu_key)); 58 __uint(key_size, sizeof(__u32)); 65 __uint(key_size, sizeof(__u32)); 72 __uint(key_size, sizeof(__u64));
|
D | bperf_cgroup.bpf.c | 18 __uint(key_size, sizeof(__u32)); 26 __uint(key_size, sizeof(__u64)); 34 __uint(key_size, sizeof(__u32)); 42 __uint(key_size, sizeof(__u32));
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/ |
D | offload.c | 155 u32 *key_layer_two, int *key_size, bool ipv6, in nfp_flower_calc_opt_layer() argument 166 *key_size += sizeof(struct nfp_flower_geneve_options); in nfp_flower_calc_opt_layer() 175 u32 *key_layer_two, u8 *key_layer, int *key_size, in nfp_flower_calc_udp_tun_layer() argument 189 *key_size += sizeof(struct nfp_flower_ext_meta); in nfp_flower_calc_udp_tun_layer() 191 *key_size += sizeof(struct nfp_flower_ipv6_udp_tun); in nfp_flower_calc_udp_tun_layer() 193 *key_size += sizeof(struct nfp_flower_ipv4_udp_tun); in nfp_flower_calc_udp_tun_layer() 208 *key_size += sizeof(struct nfp_flower_ext_meta); in nfp_flower_calc_udp_tun_layer() 213 *key_size += sizeof(struct nfp_flower_ipv6_udp_tun); in nfp_flower_calc_udp_tun_layer() 215 *key_size += sizeof(struct nfp_flower_ipv4_udp_tun); in nfp_flower_calc_udp_tun_layer() 224 err = nfp_flower_calc_opt_layer(enc_op, key_layer_two, key_size, in nfp_flower_calc_udp_tun_layer() [all …]
|
D | conntrack.c | 596 int key_size; in nfp_fl_calc_key_layers_sz() local 599 key_size = sizeof(struct nfp_flower_meta_tci); in nfp_fl_calc_key_layers_sz() 603 map[FLOW_PAY_EXT_META] = key_size; in nfp_fl_calc_key_layers_sz() 604 key_size += sizeof(struct nfp_flower_ext_meta); in nfp_fl_calc_key_layers_sz() 607 map[FLOW_PAY_INPORT] = key_size; in nfp_fl_calc_key_layers_sz() 608 key_size += sizeof(struct nfp_flower_in_port); in nfp_fl_calc_key_layers_sz() 611 map[FLOW_PAY_MAC_MPLS] = key_size; in nfp_fl_calc_key_layers_sz() 612 key_size += sizeof(struct nfp_flower_mac_mpls); in nfp_fl_calc_key_layers_sz() 615 map[FLOW_PAY_L4] = key_size; in nfp_fl_calc_key_layers_sz() 616 key_size += sizeof(struct nfp_flower_tp_ports); in nfp_fl_calc_key_layers_sz() [all …]
|
/linux-6.1.9/drivers/mmc/host/ |
D | cqhci-crypto.c | 17 enum cqhci_crypto_key_size key_size; member 21 .key_size = CQHCI_CRYPTO_KEY_SIZE_256, 80 ccap_array[i].key_size == alg->key_size && in cqhci_crypto_keyslot_program() 149 cqhci_crypto_algs[i].key_size == cap.key_size) in cqhci_find_blk_crypto_mode()
|
/linux-6.1.9/tools/bpf/bpftool/skeleton/ |
D | profiler.bpf.c | 10 __uint(key_size, sizeof(u32)); 17 __uint(key_size, sizeof(u32)); 24 __uint(key_size, sizeof(u32)); 31 __uint(key_size, sizeof(u32));
|
/linux-6.1.9/net/core/ |
D | sock_map.c | 38 attr->key_size != 4 || in sock_map_alloc() 858 u32 key_size) in sock_hash_lookup_elem_raw() argument 864 !memcmp(&elem->key, key, key_size)) in sock_hash_lookup_elem_raw() 874 u32 key_size = map->key_size, hash; in __sock_hash_lookup_elem() local 880 hash = sock_hash_bucket_hash(key, key_size); in __sock_hash_lookup_elem() 882 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in __sock_hash_lookup_elem() 910 elem->key, map->key_size); in sock_hash_delete_from_link() 922 u32 hash, key_size = map->key_size; in sock_hash_delete_elem() local 927 hash = sock_hash_bucket_hash(key, key_size); in sock_hash_delete_elem() 931 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in sock_hash_delete_elem() [all …]
|
/linux-6.1.9/kernel/trace/ |
D | tracing_map.c | 414 elt->key = kzalloc(map->key_size, GFP_KERNEL); in tracing_map_elt_alloc() 505 static inline bool keys_match(void *key, void *test_key, unsigned key_size) in keys_match() argument 509 if (memcmp(key, test_key, key_size)) in keys_match() 523 key_hash = jhash(key, map->key_size, 0); in __tracing_map_insert() 536 keys_match(key, val->key, map->key_size)) { in __tracing_map_insert() 576 memcpy(elt->key, key, map->key_size); in __tracing_map_insert() 764 unsigned int key_size, in tracing_map_create() argument 793 map->key_size = key_size; in tracing_map_create() 848 if (memcmp(a->key, b->key, a->elt->map->key_size)) in cmp_entries_dup() 962 int n_entries, unsigned int key_size) in detect_dups() argument [all …]
|
/linux-6.1.9/crypto/asymmetric_keys/ |
D | pkcs8_parser.c | 25 u32 key_size; member 90 ctx->key_size = vlen; in pkcs8_note_key() 119 pub->key = kmemdup(ctx.key, ctx.key_size, GFP_KERNEL); in pkcs8_parse() 123 pub->keylen = ctx.key_size; in pkcs8_parse()
|