/Linux-v5.10/security/keys/encrypted-keys/ |
D | encrypted.c | 305 struct key *ukey; in request_user_key() local 307 ukey = request_key(&key_type_user, master_desc, NULL); in request_user_key() 308 if (IS_ERR(ukey)) in request_user_key() 311 down_read(&ukey->sem); in request_user_key() 312 upayload = user_key_payload_locked(ukey); in request_user_key() 315 up_read(&ukey->sem); in request_user_key() 316 key_put(ukey); in request_user_key() 317 ukey = ERR_PTR(-EKEYREVOKED); in request_user_key() 323 return ukey; in request_user_key()
|
/Linux-v5.10/net/tipc/ |
D | crypto.h | 168 int tipc_crypto_key_init(struct tipc_crypto *c, struct tipc_aead_key *ukey, 176 int tipc_aead_key_validate(struct tipc_aead_key *ukey, struct genl_info *info);
|
D | crypto.c | 255 static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey, 328 int tipc_aead_key_validate(struct tipc_aead_key *ukey, struct genl_info *info) in tipc_aead_key_validate() argument 333 if (unlikely(!crypto_has_alg(ukey->alg_name, 0, 0))) { in tipc_aead_key_validate() 339 if (strcmp(ukey->alg_name, "gcm(aes)")) { in tipc_aead_key_validate() 345 keylen = ukey->keylen - TIPC_AES_GCM_SALT_SIZE; in tipc_aead_key_validate() 507 static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey, in tipc_aead_init() argument 525 keylen = ukey->keylen - TIPC_AES_GCM_SALT_SIZE; in tipc_aead_init() 536 tfm = crypto_alloc_aead(ukey->alg_name, 0, 0); in tipc_aead_init() 550 err |= crypto_aead_setkey(tfm, ukey->key, keylen); in tipc_aead_init() 585 bin2hex(tmp->hint, ukey->key + keylen - TIPC_AEAD_HINT_LEN, in tipc_aead_init() [all …]
|
D | node.c | 2903 struct tipc_aead_key *ukey; in __tipc_nl_node_set_key() local 2928 rc = tipc_nl_retrieve_key(attrs, &ukey); in __tipc_nl_node_set_key() 2934 rc = tipc_aead_key_validate(ukey, info); in __tipc_nl_node_set_key() 2959 rc = tipc_crypto_key_init(c, ukey, mode, master_key); in __tipc_nl_node_set_key()
|
/Linux-v5.10/net/ceph/ |
D | ceph_common.c | 361 struct key *ukey; in get_secret() local 366 ukey = request_key(&key_type_ceph, name, NULL); in get_secret() 367 if (IS_ERR(ukey)) { in get_secret() 370 key_err = PTR_ERR(ukey); in get_secret() 392 ckey = ukey->payload.data[0]; in get_secret() 399 key_put(ukey); in get_secret()
|
/Linux-v5.10/kernel/bpf/ |
D | syscall.c | 988 static void *__bpf_copy_key(void __user *ukey, u64 key_size) in __bpf_copy_key() argument 991 return memdup_user(ukey, key_size); in __bpf_copy_key() 993 if (ukey) in __bpf_copy_key() 1004 void __user *ukey = u64_to_user_ptr(attr->key); in map_lookup_elem() local 1034 key = __bpf_copy_key(ukey, map->key_size); in map_lookup_elem() 1071 void __user *ukey = u64_to_user_ptr(attr->key); in map_update_elem() local 1098 key = __bpf_copy_key(ukey, map->key_size); in map_update_elem() 1136 void __user *ukey = u64_to_user_ptr(attr->key); in map_delete_elem() local 1155 key = __bpf_copy_key(ukey, map->key_size); in map_delete_elem() 1189 void __user *ukey = u64_to_user_ptr(attr->key); in map_get_next_key() local [all …]
|
/Linux-v5.10/arch/arm64/kernel/ |
D | ptrace.c | 920 static struct ptrauth_key pac_key_from_user(__uint128_t ukey) in pac_key_from_user() argument 923 .lo = (unsigned long)ukey, in pac_key_from_user() 924 .hi = (unsigned long)(ukey >> 64), in pac_key_from_user()
|
/Linux-v5.10/crypto/ |
D | af_alg.c | 201 static int alg_setkey(struct sock *sk, sockptr_t ukey, unsigned int keylen) in alg_setkey() argument 213 if (copy_from_sockptr(key, ukey, keylen)) in alg_setkey()
|
/Linux-v5.10/drivers/s390/crypto/ |
D | pkey_api.c | 1109 static void *_copy_key_from_user(void __user *ukey, size_t keylen) in _copy_key_from_user() argument 1111 if (!ukey || keylen < MINKEYBLOBSIZE || keylen > KEYBLOBBUFSIZE) in _copy_key_from_user() 1114 return memdup_user(ukey, keylen); in _copy_key_from_user()
|