Searched refs:ukey (Results 1 – 9 of 9) sorted by relevance
/linux/security/keys/encrypted-keys/ |
A 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/net/tipc/ |
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);
|
A D | crypto.c | 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() 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() 599 tmp->key = kmemdup(ukey, tipc_aead_key_size(ukey), GFP_KERNEL); in tipc_aead_init() 604 memcpy(&tmp->salt, ukey->key + keylen, TIPC_AES_GCM_SALT_SIZE); in tipc_aead_init() 1130 int tipc_crypto_key_init(struct tipc_crypto *c, struct tipc_aead_key *ukey, in tipc_crypto_key_init() argument [all …]
|
A D | node.c | 2953 struct tipc_aead_key *ukey; in __tipc_nl_node_set_key() local 2978 rc = tipc_nl_retrieve_key(attrs, &ukey); in __tipc_nl_node_set_key() 2984 rc = tipc_aead_key_validate(ukey, info); in __tipc_nl_node_set_key() 3009 rc = tipc_crypto_key_init(c, ukey, mode, master_key); in __tipc_nl_node_set_key()
|
/linux/net/ceph/ |
A D | ceph_common.c | 381 struct key *ukey; in get_secret() local 386 ukey = request_key(&key_type_ceph, name, NULL); in get_secret() 387 if (IS_ERR(ukey)) { in get_secret() 390 key_err = PTR_ERR(ukey); in get_secret() 412 ckey = ukey->payload.data[0]; in get_secret() 419 key_put(ukey); in get_secret()
|
/linux/kernel/bpf/ |
A D | syscall.c | 1036 return vmemdup_user(ukey, key_size); in __bpf_copy_key() 1038 if (ukey) in __bpf_copy_key() 1047 return kvmemdup_bpfptr(ukey, key_size); in ___bpf_copy_key() 1049 if (!bpfptr_is_null(ukey)) in ___bpf_copy_key() 1060 void __user *ukey = u64_to_user_ptr(attr->key); in map_lookup_elem() local 1090 key = __bpf_copy_key(ukey, map->key_size); in map_lookup_elem() 1163 key = ___bpf_copy_key(ukey, map->key_size); in map_update_elem() 1216 key = __bpf_copy_key(ukey, map->key_size); in map_delete_elem() 1271 if (ukey) { in map_get_next_key() 1272 key = __bpf_copy_key(ukey, map->key_size); in map_get_next_key() [all …]
|
/linux/arch/arm64/kernel/ |
A D | ptrace.c | 955 static struct ptrauth_key pac_key_from_user(__uint128_t ukey) in pac_key_from_user() argument 958 .lo = (unsigned long)ukey, in pac_key_from_user() 959 .hi = (unsigned long)(ukey >> 64), in pac_key_from_user()
|
/linux/crypto/ |
A D | af_alg.c | 205 static int alg_setkey(struct sock *sk, sockptr_t ukey, unsigned int keylen) in alg_setkey() argument 217 if (copy_from_sockptr(key, ukey, keylen)) in alg_setkey()
|
/linux/drivers/s390/crypto/ |
A D | pkey_api.c | 1124 static void *_copy_key_from_user(void __user *ukey, size_t keylen) in _copy_key_from_user() argument 1126 if (!ukey || keylen < MINKEYBLOBSIZE || keylen > KEYBLOBBUFSIZE) in _copy_key_from_user() 1129 return memdup_user(ukey, keylen); in _copy_key_from_user()
|
Completed in 38 milliseconds