/linux-6.12.1/crypto/ |
D | rsa-pkcs1pad.c | 116 unsigned int key_size; member 136 ctx->key_size = 0; in pkcs1pad_set_pub_key() 147 ctx->key_size = err; in pkcs1pad_set_pub_key() 157 ctx->key_size = 0; in pkcs1pad_set_priv_key() 168 ctx->key_size = err; in pkcs1pad_set_priv_key() 182 return ctx->key_size; in pkcs1pad_get_max_size() 210 pad_len = ctx->key_size - len; in pkcs1pad_encrypt_sign_complete() 216 out_buf = kzalloc(ctx->key_size, GFP_ATOMIC); in pkcs1pad_encrypt_sign_complete() 224 sg_nents_for_len(req->dst, ctx->key_size), in pkcs1pad_encrypt_sign_complete() 225 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 | 34 params.key_size > sizeof(u64) * ctx->ndigits) in ecdh_set_secret() 39 if (!params.key || !params.key_size) in ecdh_set_secret() 43 ecc_digits_from_bytes(params.key, params.key_size, in ecdh_set_secret() 47 ctx->private_key, params.key_size) < 0) { in ecdh_set_secret() 48 memzero_explicit(ctx->private_key, params.key_size); in ecdh_set_secret()
|
/linux-6.12.1/kernel/bpf/ |
D | hashtab.c | 198 static inline void htab_elem_set_ptr(struct htab_elem *l, u32 key_size, in htab_elem_set_ptr() argument 201 *(void __percpu **)(l->key + key_size) = pptr; in htab_elem_set_ptr() 204 static inline void __percpu *htab_elem_get_ptr(struct htab_elem *l, u32 key_size) in htab_elem_get_ptr() argument 206 return *(void __percpu **)(l->key + key_size); in htab_elem_get_ptr() 211 return *(void **)(l->key + roundup(map->key_size, 8)); in fd_htab_map_get_ptr() 238 elem->key + round_up(htab->map.key_size, 8)); in htab_free_prealloced_timers_and_wq() 241 elem->key + round_up(htab->map.key_size, 8)); in htab_free_prealloced_timers_and_wq() 260 void __percpu *pptr = htab_elem_get_ptr(elem, htab->map.key_size); in htab_free_prealloced_fields() 268 bpf_obj_free_fields(htab->map.record, elem->key + round_up(htab->map.key_size, 8)); in htab_free_prealloced_fields() 286 htab->map.key_size); in htab_free_elems() [all …]
|
D | map_in_map.c | 37 inner_map_meta->key_size = inner_map->key_size; in bpf_map_meta_alloc() 88 meta0->key_size == meta1->key_size && in bpf_map_meta_equal()
|
/linux-6.12.1/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.12.1/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.12.1/tools/bpf/bpftool/ |
D | map.c | 139 print_hex_data_json(key, info->key_size); in print_entry_json() 162 print_hex_data_json(key, info->key_size); in print_entry_json() 200 break_names = info->key_size > 16 || msg_size > 16; in print_entry_error_msg() 201 single_line = info->key_size + msg_size <= 24 && !break_names; in print_entry_error_msg() 204 fprint_hex(stdout, key, info->key_size, " "); in print_entry_error_msg() 227 print_hex_data_json(key, map_info->key_size); in print_entry_error() 253 break_names = info->key_size > 16 || info->value_size > 16; in print_entry_plain() 254 single_line = info->key_size + info->value_size <= 24 && in print_entry_plain() 257 if (info->key_size) { in print_entry_plain() 259 fprint_hex(stdout, key, info->key_size, " "); in print_entry_plain() [all …]
|
/linux-6.12.1/tools/lib/bpf/ |
D | libbpf_probes.c | 285 int key_size, value_size, max_entries; in probe_map_create() local 289 key_size = sizeof(__u32); in probe_map_create() 298 key_size = sizeof(__u64); in probe_map_create() 304 key_size = sizeof(struct bpf_cgroup_storage_key); in probe_map_create() 310 key_size = 0; in probe_map_create() 327 key_size = 0; in probe_map_create() 338 key_size = 0; in probe_map_create() 342 key_size = 0; in probe_map_create() 388 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, &opts); in probe_map_create()
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/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 | lock_contention.bpf.c | 25 __uint(key_size, sizeof(__u32)); 41 __uint(key_size, sizeof(__u32)); 49 __uint(key_size, sizeof(struct contention_key)); 56 __uint(key_size, sizeof(__u32)); 63 __uint(key_size, sizeof(__u64)); 70 __uint(key_size, sizeof(__u32)); 77 __uint(key_size, sizeof(__u32)); 84 __uint(key_size, sizeof(__u32)); 91 __uint(key_size, sizeof(__u64)); 98 __uint(key_size, sizeof(__u64));
|
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 | 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.12.1/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.12.1/tools/testing/selftests/bpf/benchs/ |
D | bench_bpf_hashmap_lookup.c | 21 __u32 key_size; member 27 .key_size = 4, 67 args.key_size = ret; in parse_arg() 167 bpf_map__set_key_size(ctx.skel->maps.hash_map_bench, args.key_size); in setup() 174 if (args.key_size > 4) { in setup() 175 for (i = 1; i < args.key_size/4; i++) in setup()
|
/linux-6.12.1/tools/bpf/bpftool/skeleton/ |
D | profiler.bpf.c | 16 __uint(key_size, sizeof(u32)); 23 __uint(key_size, sizeof(u32)); 30 __uint(key_size, sizeof(u32)); 37 __uint(key_size, sizeof(u32));
|
/linux-6.12.1/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()
|
/linux-6.12.1/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() 769 unsigned int key_size, in tracing_map_create() argument 798 map->key_size = key_size; in tracing_map_create() 853 if (memcmp(a->key, b->key, a->elt->map->key_size)) in cmp_entries_dup() 967 int n_entries, unsigned int key_size) in detect_dups() argument [all …]
|
/linux-6.12.1/fs/ecryptfs/ |
D | crypto.c | 285 crypt_stat->key_size); in crypt_scatterlist() 287 crypt_stat->key_size); in crypt_scatterlist() 304 crypt_stat->key_size); in crypt_scatterlist() 539 crypt_stat->key_size << 3); in ecryptfs_init_crypt_ctx() 621 crypt_stat->key_size); in ecryptfs_compute_root_iv() 638 get_random_bytes(crypt_stat->key, crypt_stat->key_size); in ecryptfs_generate_new_key() 644 crypt_stat->key_size); in ecryptfs_generate_new_key() 718 crypt_stat->key_size = ECRYPTFS_DEFAULT_KEY_BYTES; in ecryptfs_set_default_crypt_stat_vals() 770 crypt_stat->key_size = in ecryptfs_new_file_context() 1521 char *cipher_name, size_t *key_size) in ecryptfs_process_key_cipher() argument [all …]
|
/linux-6.12.1/net/core/ |
D | sock_map.c | 44 attr->key_size != 4 || in sock_map_alloc() 874 u32 key_size) in sock_hash_lookup_elem_raw() argument 880 !memcmp(&elem->key, key, key_size)) in sock_hash_lookup_elem_raw() 890 u32 key_size = map->key_size, hash; in __sock_hash_lookup_elem() local 896 hash = sock_hash_bucket_hash(key, key_size); in __sock_hash_lookup_elem() 898 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in __sock_hash_lookup_elem() 926 elem->key, map->key_size); in sock_hash_delete_from_link() 938 u32 hash, key_size = map->key_size; in sock_hash_delete_elem() local 943 hash = sock_hash_bucket_hash(key, key_size); in sock_hash_delete_elem() 947 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in sock_hash_delete_elem() [all …]
|