| /linux/kernel/bpf/ |
| H A D | hashtab.c | 131 u32 key_size; member 186 static inline void *htab_elem_value(struct htab_elem *l, u32 key_size) in htab_elem_value() argument 188 return l->key + round_up(key_size, 8); in htab_elem_value() 191 static inline void htab_elem_set_ptr(struct htab_elem *l, u32 key_size, in htab_elem_set_ptr() argument 194 *(void __percpu **)htab_elem_value(l, key_size) = pptr; in htab_elem_set_ptr() 197 static inline void __percpu *htab_elem_get_ptr(struct htab_elem *l, u32 key_size) in htab_elem_get_ptr() argument 199 return *(void __percpu **)htab_elem_value(l, key_size); in htab_elem_get_ptr() 204 return *(void **)htab_elem_value(l, map->key_size); in fd_htab_map_get_ptr() 234 htab_elem_value(elem, htab->map.key_size)); in htab_free_prealloced_internal_structs() 257 void __percpu *pptr = htab_elem_get_ptr(elem, htab->map.key_size); in htab_free_prealloced_fields() [all …]
|
| /linux/crypto/ |
| H A 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()
|
| H A 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()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A 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/tools/bpf/bpftool/ |
| H A 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/tools/testing/selftests/bpf/map_tests/ |
| H A D | lpm_trie_map_basic_ops.c | 445 size_t key_size; in test_lpm_delete() local 449 key_size = sizeof(*key) + sizeof(__u32); in test_lpm_delete() 450 key = alloca(key_size); in test_lpm_delete() 453 key_size, sizeof(value), in test_lpm_delete() 554 size_t key_size; in test_lpm_get_next_key() local 558 key_size = sizeof(*key_p) + sizeof(__u32); in test_lpm_get_next_key() 559 key_p = alloca(key_size); in test_lpm_get_next_key() 560 next_key_p = alloca(key_size); in test_lpm_get_next_key() 562 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, key_size, sizeof(value), 100, &opts); in test_lpm_get_next_key() 573 memset(key_p, 0, key_size); in test_lpm_get_next_key() [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf_probes.c | 295 int key_size, value_size, max_entries; in probe_map_create() 299 key_size = sizeof(__u32); in probe_map_create() 308 key_size = sizeof(__u64); in probe_map_create() 317 key_size = sizeof(struct bpf_cgroup_storage_key); in probe_map_create() 323 key_size = 0; in probe_map_create() 340 key_size = 0; in probe_map_create() 351 key_size = 0; in probe_map_create() 355 key_size = 0; in probe_map_create() 381 key_size = sizeof(__u32); in probe_map_create() 405 fd = bpf_map_create(map_type, NULL, key_size, value_siz 285 int key_size, value_size, max_entries; probe_map_create() local [all...] |
| /linux/tools/perf/util/bpf_skel/ |
| H A D | lock_contention.bpf.c | 31 __uint(key_size, sizeof(__u32)); 39 __uint(key_size, sizeof(__u32)); 47 __uint(key_size, sizeof(__u64)); // owner stacktrace 55 __uint(key_size, sizeof(__u64)); // lock address 63 __uint(key_size, sizeof(struct contention_key)); 79 __uint(key_size, sizeof(__u32)); 87 __uint(key_size, sizeof(struct contention_key)); 94 __uint(key_size, sizeof(__u32)); 101 __uint(key_size, sizeof(__u64)); 108 __uint(key_size, sizeo [all...] |
| H A D | off_cpu.bpf.c | 46 __uint(key_size, sizeof(__u32)); 57 __uint(key_size, sizeof(int)); 64 __uint(key_size, sizeof(__u32)); 78 __uint(key_size, sizeof(struct offcpu_key)); 85 __uint(key_size, sizeof(__u32)); 92 __uint(key_size, sizeof(__u32)); 99 __uint(key_size, sizeof(__u64));
|
| H A D | bperf_leader.bpf.c | 9 __uint(key_size, sizeof(__u32)); 16 __uint(key_size, sizeof(__u32)); 23 __uint(key_size, sizeof(__u32));
|
| H A 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));
|
| H A D | bpf_prog_profiler.bpf.c | 10 __uint(key_size, sizeof(__u32)); 17 __uint(key_size, sizeof(__u32)); 25 __uint(key_size, sizeof(__u32));
|
| H A D | bperf_cgroup.bpf.c | 16 __uint(key_size, sizeof(__u32)); 24 __uint(key_size, sizeof(__u64)); 32 __uint(key_size, sizeof(__u32)); 40 __uint(key_size, sizeof(__u32));
|
| /linux/drivers/net/ethernet/netronome/nfp/flower/ |
| H A 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 …]
|
| H A D | conntrack.c | 623 int key_size; in nfp_fl_calc_key_layers_sz() local 626 key_size = sizeof(struct nfp_flower_meta_tci); in nfp_fl_calc_key_layers_sz() 630 map[FLOW_PAY_EXT_META] = key_size; in nfp_fl_calc_key_layers_sz() 631 key_size += sizeof(struct nfp_flower_ext_meta); in nfp_fl_calc_key_layers_sz() 634 map[FLOW_PAY_INPORT] = key_size; in nfp_fl_calc_key_layers_sz() 635 key_size += sizeof(struct nfp_flower_in_port); in nfp_fl_calc_key_layers_sz() 638 map[FLOW_PAY_MAC_MPLS] = key_size; in nfp_fl_calc_key_layers_sz() 639 key_size += sizeof(struct nfp_flower_mac_mpls); in nfp_fl_calc_key_layers_sz() 642 map[FLOW_PAY_L4] = key_size; in nfp_fl_calc_key_layers_sz() 643 key_size += sizeof(struct nfp_flower_tp_ports); in nfp_fl_calc_key_layers_sz() [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | cqhci-crypto.c | 17 enum cqhci_crypto_key_size key_size; member 21 .key_size = CQHCI_CRYPTO_KEY_SIZE_256, 72 ccap_array[i].key_size == alg->key_size && in cqhci_crypto_keyslot_program() 142 cqhci_crypto_algs[i].key_size == cap.key_size) in cqhci_find_blk_crypto_mode()
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| H A D | bench_bpf_hashmap_lookup.c | 21 __u32 key_size; member 27 .key_size = 4, 43 { "key_size", ARG_KEY_SIZE, "KEY_SIZE", 0, 64 fprintf(stderr, "invalid key_size"); in parse_arg() 67 args.key_size = ret; in parse_arg() 173 bpf_map__set_key_size(ctx.skel->maps.hash_map_bench, args.key_size); in setup() 180 if (args.key_size > 4) { in setup() 181 for (i = 1; i < args.key_size/4; i++) in setup()
|
| /linux/tools/bpf/bpftool/skeleton/ |
| H A 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/crypto/asymmetric_keys/ |
| H A 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/fs/ecryptfs/ |
| H A D | crypto.c | 218 crypt_stat->key_size); in crypt_scatterlist() 220 crypt_stat->key_size); in crypt_scatterlist() 237 crypt_stat->key_size); in crypt_scatterlist() 468 crypt_stat->key_size << 3); in ecryptfs_init_crypt_ctx() 549 md5(crypt_stat->key, crypt_stat->key_size, dst); in ecryptfs_compute_root_iv() 556 get_random_bytes(crypt_stat->key, crypt_stat->key_size); in ecryptfs_generate_new_key() 562 crypt_stat->key_size); in ecryptfs_generate_new_key() 636 crypt_stat->key_size = ECRYPTFS_DEFAULT_KEY_BYTES; in ecryptfs_set_default_crypt_stat_vals() 683 crypt_stat->key_size = in ecryptfs_new_file_context() 1426 char *cipher_name, size_t *key_size) in ecryptfs_process_key_cipher() argument [all …]
|
| H A D | keystore.c | 306 data_len = (8 + ECRYPTFS_SIG_SIZE_HEX + crypt_stat->key_size); in write_tag_66_packet() 326 rc = ecryptfs_write_packet_length(&message[i], crypt_stat->key_size + 3, in write_tag_66_packet() 335 memcpy(&message[i], crypt_stat->key, crypt_stat->key_size); in write_tag_66_packet() 336 i += crypt_stat->key_size; in write_tag_66_packet() 337 for (j = 0; j < crypt_stat->key_size; j++) in write_tag_66_packet() 1138 crypt_stat->key_size = auth_tok->session_key.decrypted_key_size; in decrypt_pki_encrypted_session_key() 1151 crypt_stat->key_size); in decrypt_pki_encrypted_session_key() 1425 crypt_stat->key_size = 24; in parse_tag_3_packet() 1428 crypt_stat->key_size = in parse_tag_3_packet() 1688 crypt_stat->key_size); in decrypt_passphrase_encrypted_session_key() [all …]
|
| /linux/net/core/ |
| H A D | sock_map.c | 44 attr->key_size != 4 || in sock_map_alloc() 882 u32 key_size) in sock_hash_lookup_elem_raw() argument 888 !memcmp(&elem->key, key, key_size)) in sock_hash_lookup_elem_raw() 898 u32 key_size = map->key_size, hash; in __sock_hash_lookup_elem() local 904 hash = sock_hash_bucket_hash(key, key_size); in __sock_hash_lookup_elem() 906 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in __sock_hash_lookup_elem() 934 elem->key, map->key_size); in sock_hash_delete_from_link() 946 u32 hash, key_size = map->key_size; in sock_hash_delete_elem() local 951 hash = sock_hash_bucket_hash(key, key_size); in sock_hash_delete_elem() 955 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in sock_hash_delete_elem() [all …]
|
| /linux/drivers/md/ |
| H A D | dm-inlinecrypt.c | 44 unsigned int key_size; member 210 const unsigned int key_size) in inlinecrypt_get_key() argument 214 if (key_size > BLK_CRYPTO_MAX_ANY_KEY_SIZE) { in inlinecrypt_get_key() 222 ret = inlinecrypt_get_keyring_key(key_string + 1, key, key_size); in inlinecrypt_get_key() 226 if (hex2bin(key, key_string, key_size) != 0) in inlinecrypt_get_key() 352 ctx->key_size = err; in inlinecrypt_ctr() 354 err = inlinecrypt_get_key(argv[1], key_bytes, ctx->key_size); in inlinecrypt_ctr() 408 err = blk_crypto_init_key(&ctx->key, key_bytes, ctx->key_size, in inlinecrypt_ctr()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | tailcall_bpf2bpf_hierarchy3.c | 12 __uint(key_size, sizeof(__u32)); 23 __uint(key_size, sizeof(__u32));
|
| H A D | test_queue_stack_map.h | 15 __uint(key_size, 0); 23 __uint(key_size, 0);
|