Lines Matching refs:key
8 #include <linux/key.h>
9 #include <linux/key-type.h>
15 static struct key *nvme_keyring;
23 static void nvme_tls_psk_describe(const struct key *key, struct seq_file *m)
25 seq_puts(m, key->description);
26 seq_printf(m, ": %u", key->datalen);
29 static bool nvme_tls_psk_match(const struct key *key,
35 if (!key->description) {
36 pr_debug("%s: no key description\n", __func__);
39 match_len = strlen(key->description);
40 pr_debug("%s: id %s len %zd\n", __func__, key->description, match_len);
48 __func__, match_id, key->description, match_len);
49 return !memcmp(key->description, match_id, match_len);
72 static struct key *nvme_tls_psk_lookup(struct key *keyring,
131 key_serial_t nvme_tls_psk_default(struct key *keyring,
134 struct key *tls_key;