Lines Matching defs:key

16 #include <linux/key-type.h>
17 #include <linux/key.h>
133 static void cert_store_key_describe(const struct key *key, struct seq_file *m)
138 * First 64 bytes of the key description is key name in EBCDIC CP 500.
141 strscpy(ascii, key->description, sizeof(ascii));
145 seq_puts(m, &key->description[VC_NAME_LEN_BYTES]);
146 if (key_is_positive(key))
147 seq_printf(m, ": %u", key->datalen);
151 * Certificate store key type takes over properties of
152 * user key but cannot be updated.
299 static struct key *get_user_session_keyring(void)
315 static int invalidate_keyring_keys(struct key *keyring)
320 struct key *current_key;
337 pr_dbf_msg("Invalidating key %08x", current_key->serial);
343 pr_dbf_msg("Couldn't unlink key %08x: %d", current_key->serial, rc);
352 static struct key *find_cs_keyring(void)
355 struct key *cs_keyring;
376 struct key *cs_keyring;
396 static struct key *create_cs_keyring(void)
398 static struct key *cs_keyring;
416 * error and unregistered key type.
424 * Allocate memory and create key description in format
425 * [key name in EBCDIC]:[VCE index]:[CS token].
426 * Return a pointer to key description or NULL if memory
451 * Create a key of type "cert_store_key" using the data from VCE for key
452 * payload and key description. Link the key to "cert_store" keyring.
455 struct key *keyring)
474 pr_dbf_msg("Couldn't create a key from Certificate Entry (%d)", rc);
570 * extract VCE and create a key from its' certificate.
573 struct key *keyring)
598 pr_dbf_msg("Successfully created key from Certificate Entry %d", index);
607 * Create a key from it and link it to cert_store keyring. If no keys
610 static int add_certificates_to_keyring(struct vcssb *vcssb, struct key *keyring)
618 pr_dbf_msg("Creating key from VCE %u", index);
626 pr_dbf_msg("Creating key from VCE %u failed (%d)", index, rc);
684 struct key *cs_keyring;