Home
last modified time | relevance | path

Searched refs:ukey (Results 1 – 8 of 8) sorted by relevance

/linux/security/keys/encrypted-keys/
H A Dencrypted.c308 struct key *ukey; in request_user_key() local
310 ukey = request_key(&key_type_user, master_desc, NULL); in request_user_key()
311 if (IS_ERR(ukey)) in request_user_key()
314 down_read(&ukey->sem); in request_user_key()
315 upayload = user_key_payload_locked(ukey); in request_user_key()
318 up_read(&ukey->sem); in request_user_key()
319 key_put(ukey); in request_user_key()
320 ukey = ERR_PTR(-EKEYREVOKED); in request_user_key()
326 return ukey; in request_user_key()
/linux/net/tipc/
H A Dcrypto.h168 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 Dcrypto.c257 static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey,
332 int tipc_aead_key_validate(struct tipc_aead_key *ukey, struct genl_info *info) in tipc_aead_key_validate() argument
337 if (unlikely(!crypto_has_alg(ukey->alg_name, 0, 0))) { in tipc_aead_key_validate()
343 if (strcmp(ukey->alg_name, "gcm(aes)")) { in tipc_aead_key_validate()
349 keylen = ukey->keylen - TIPC_AES_GCM_SALT_SIZE; in tipc_aead_key_validate()
503 static int tipc_aead_init(struct tipc_aead **aead, struct tipc_aead_key *ukey, in tipc_aead_init() argument
521 keylen = ukey->keylen - TIPC_AES_GCM_SALT_SIZE; in tipc_aead_init()
532 tfm = crypto_alloc_aead(ukey->alg_name, 0, 0); in tipc_aead_init()
546 err |= crypto_aead_setkey(tfm, ukey->key, keylen); in tipc_aead_init()
581 bin2hex(tmp->hint, ukey->key + keylen - TIPC_AEAD_HINT_LEN, in tipc_aead_init()
[all …]
H A Dnode.c2990 struct tipc_aead_key *ukey; in __tipc_nl_node_set_key() local
3015 rc = tipc_nl_retrieve_key(attrs, &ukey); in __tipc_nl_node_set_key()
3021 rc = tipc_aead_key_validate(ukey, info); in __tipc_nl_node_set_key()
3046 rc = tipc_crypto_key_init(c, ukey, mode, master_key); in __tipc_nl_node_set_key()
/linux/net/ceph/
H A Dceph_common.c356 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 Dpkey_api.c76 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 Dsyscall.c1780 static void *__bpf_copy_key(void __user *ukey, u64 key_size) in ___bpf_copy_key()
1783 return vmemdup_user(ukey, key_size);
1785 if (ukey)
1791 static void *___bpf_copy_key(bpfptr_t ukey, u64 key_size) in map_lookup_elem()
1794 return kvmemdup_bpfptr(ukey, key_size); in map_lookup_elem()
1796 if (!bpfptr_is_null(ukey)) in map_lookup_elem()
1807 void __user *ukey = u64_to_user_ptr(attr->key); in map_lookup_elem()
1828 key = __bpf_copy_key(ukey, map->key_size); in map_lookup_elem()
1868 bpfptr_t ukey = make_bpfptr(attr->key, uattr.is_kernel); in map_update_elem()
1892 key = ___bpf_copy_key(ukey, ma in map_update_elem()
1761 __bpf_copy_key(void __user * ukey,u64 key_size) __bpf_copy_key() argument
1772 ___bpf_copy_key(bpfptr_t ukey,u64 key_size) ___bpf_copy_key() argument
1788 void __user *ukey = u64_to_user_ptr(attr->key); map_lookup_elem() local
1849 bpfptr_t ukey = make_bpfptr(attr->key, uattr.is_kernel); map_update_elem() local
1902 bpfptr_t ukey = make_bpfptr(attr->key, uattr.is_kernel); map_delete_elem() local
1955 void __user *ukey = u64_to_user_ptr(attr->key); map_get_next_key() local
2218 void __user *ukey = u64_to_user_ptr(attr->key); map_lookup_and_delete_elem() local
[all...]
/linux/arch/arm64/kernel/
H A Dptrace.c1384 static struct ptrauth_key pac_key_from_user(__uint128_t ukey) in pac_key_from_user()
1387 .lo = (unsigned long)ukey, in pac_key_from_user()
1388 .hi = (unsigned long)(ukey >> 64), in pac_key_from_user()
1380 pac_key_from_user(__uint128_t ukey) pac_key_from_user() argument