| /linux/security/keys/encrypted-keys/ |
| H A D | encrypted.c | 307 struct key *ukey; in request_user_key() 309 ukey = request_key(&key_type_user, master_desc, NULL); in request_user_key() 310 if (IS_ERR(ukey)) in request_user_key() 313 down_read(&ukey->sem); in request_user_key() 314 upayload = user_key_payload_locked(ukey); in request_user_key() 317 up_read(&ukey->sem); in request_user_key() 318 key_put(ukey); in request_user_key() 319 ukey = ERR_PTR(-EKEYREVOKED); in request_user_key() 325 return ukey; in request_user_key() 306 struct key *ukey; request_user_key() local
|
| /linux/net/tipc/ |
| H A 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);
|
| H A D | crypto.c | 259 static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey, 334 int tipc_aead_key_validate(struct tipc_aead_key *ukey, struct genl_info *info) in tipc_aead_key_validate() argument 339 if (unlikely(!crypto_has_alg(ukey->alg_name, 0, 0))) { in tipc_aead_key_validate() 345 if (strcmp(ukey->alg_name, "gcm(aes)")) { in tipc_aead_key_validate() 351 keylen = ukey->keylen - TIPC_AES_GCM_SALT_SIZE; in tipc_aead_key_validate() 514 static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey, in tipc_aead_init() argument 532 keylen = ukey->keylen - TIPC_AES_GCM_SALT_SIZE; in tipc_aead_init() 543 tfm = crypto_alloc_aead(ukey->alg_name, 0, 0); in tipc_aead_init() 557 err |= crypto_aead_setkey(tfm, ukey->key, keylen); in tipc_aead_init() 592 bin2hex(tmp->hint, ukey->key + keylen - TIPC_AEAD_HINT_LEN, in tipc_aead_init() [all …]
|
| H A D | node.c | 2966 struct tipc_aead_key *ukey; in __tipc_nl_node_set_key() local 2991 rc = tipc_nl_retrieve_key(attrs, &ukey); in __tipc_nl_node_set_key() 2997 rc = tipc_aead_key_validate(ukey, info); in __tipc_nl_node_set_key() 3022 rc = tipc_crypto_key_init(c, ukey, mode, master_key); in __tipc_nl_node_set_key()
|
| /linux/net/ceph/ |
| H A D | ceph_common.c | 356 struct key *ukey; in get_secret() local 361 ukey = request_key(&key_type_ceph, name, NULL); in get_secret() 362 if (IS_ERR(ukey)) { in get_secret() 365 key_err = PTR_ERR(ukey); in get_secret() 387 ckey = ukey->payload.data[0]; in get_secret() 394 key_put(ukey); in get_secret()
|
| /linux/drivers/s390/crypto/ |
| H A D | pkey_api.c | 76 static void *_copy_key_from_user(void __user *ukey, size_t keylen) in _copy_key_from_user() argument 78 if (!ukey || keylen < MINKEYBLOBBUFSIZE || keylen > KEYBLOBBUFSIZE) in _copy_key_from_user() 81 return memdup_user(ukey, keylen); in _copy_key_from_user()
|
| /linux/kernel/bpf/ |
| H A D | syscall.c | 1686 static void *__bpf_copy_key(void __user *ukey, u64 key_size) in __bpf_copy_key() argument 1689 return vmemdup_user(ukey, key_size); in __bpf_copy_key() 1691 if (ukey) in __bpf_copy_key() 1697 static void *___bpf_copy_key(bpfptr_t ukey, u64 key_size) in ___bpf_copy_key() argument 1700 return kvmemdup_bpfptr(ukey, key_size); in ___bpf_copy_key() 1702 if (!bpfptr_is_null(ukey)) in ___bpf_copy_key() 1713 void __user *ukey = u64_to_user_ptr(attr->key); in map_lookup_elem() local 1734 key = __bpf_copy_key(ukey, map->key_size); in map_lookup_elem() 1775 bpfptr_t ukey = make_bpfptr(attr->key, uattr.is_kernel); in map_update_elem() local 1799 key = ___bpf_copy_key(ukey, map->key_size); in map_update_elem() [all …]
|
| /linux/crypto/ |
| H A D | af_alg.c | 208 static int alg_setkey(struct sock *sk, sockptr_t ukey, unsigned int keylen) in alg_setkey() argument 220 if (copy_from_sockptr(key, ukey, keylen)) in alg_setkey()
|
| /linux/arch/arm64/kernel/ |
| H A D | ptrace.c | 1330 static struct ptrauth_key pac_key_from_user(__uint128_t ukey) in pac_key_from_user() argument 1333 .lo = (unsigned long)ukey, in pac_key_from_user() 1334 .hi = (unsigned long)(ukey >> 64), in pac_key_from_user()
|