Lines Matching refs:key
11 #include <linux/key.h>
12 #include <linux/key-type.h>
35 static struct key *blacklist_keyring;
86 static int blacklist_key_instantiate(struct key *key,
94 key->perm = BLACKLIST_KEY_PERM;
100 if (key->flags & (1 << KEY_FLAG_BUILTIN))
108 err = verify_pkcs7_signature(key->description,
109 strlen(key->description), prep->data, prep->datalen,
124 return generic_key_instantiate(key, prep);
127 static int blacklist_key_update(struct key *key,
133 static void blacklist_describe(const struct key *key, struct seq_file *m)
135 seq_puts(m, key->description);
184 key_ref_t key;
186 key = key_create(make_key_ref(blacklist_keyring, true),
194 if (IS_ERR(key)) {
195 if (PTR_ERR(key) == -EEXIST)
198 pr_err("Problem blacklisting hash %s: %pe\n", hash, key);
199 return PTR_ERR(key);
264 key_ref_t key;
266 key = key_create_or_update(make_key_ref(blacklist_keyring, true),
276 if (IS_ERR(key)) {
277 pr_err("Problem with revocation key (%ld)\n", PTR_ERR(key));
278 return PTR_ERR(key);
285 * is_key_on_revocation_list - Determine if the key for a PKCS#7 message is revoked
301 static int restrict_link_for_blacklist(struct key *dest_keyring,
303 struct key *restrict_key)
317 * keyring fails to load it defeats the certificate/key based deny list for
328 panic("Can't allocate system blacklist key type\n");