Home
last modified time | relevance | path

Searched refs:keyref (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/fs/crypto/
H A Dkeyring.c347 key_ref_t keyref; in find_master_key_user() local
355 keyref = keyring_search(make_key_ref(mk->mk_users, true /*possessed*/), in find_master_key_user()
357 if (IS_ERR(keyref)) { in find_master_key_user()
358 if (PTR_ERR(keyref) == -EAGAIN || /* not found */ in find_master_key_user()
359 PTR_ERR(keyref) == -EKEYREVOKED) /* recently invalidated */ in find_master_key_user()
360 keyref = ERR_PTR(-ENOKEY); in find_master_key_user()
361 return ERR_CAST(keyref); in find_master_key_user()
363 return key_ref_to_ptr(keyref); in find_master_key_user()
/openbmc/linux/drivers/nvdimm/
H A Dsecurity.c93 key_ref_t keyref; in nvdimm_lookup_user_key() local
98 keyref = lookup_user_key(id, 0, KEY_NEED_SEARCH); in nvdimm_lookup_user_key()
99 if (IS_ERR(keyref)) in nvdimm_lookup_user_key()
102 key = key_ref_to_ptr(keyref); in nvdimm_lookup_user_key()