Lines Matching defs:key
2 /* Large capacity key type
21 * Layout of key payload words.
55 * Preparse a big key
81 * File content is stored encrypted with randomly generated key.
82 * Since the key is random for each file, we can set the nonce
91 /* generate random key */
120 /* Pin the mount and dentry to the key so that we can open it again
163 * - called with the key sem write-locked
165 void big_key_revoke(struct key *key)
167 struct big_key_payload *payload = to_big_key_payload(key->payload);
170 key_payload_reserve(key, 0);
171 if (key_is_positive(key) && payload->length > BIG_KEY_FILE_THRESHOLD)
176 * dispose of the data dangling from the corpse of a big_key key
178 void big_key_destroy(struct key *key)
180 struct big_key_payload *payload = to_big_key_payload(key->payload);
192 * Update a big key
194 int big_key_update(struct key *key, struct key_preparsed_payload *prep)
198 ret = key_payload_reserve(key, prep->datalen);
202 if (key_is_positive(key))
203 big_key_destroy(key);
205 return generic_key_instantiate(key, prep);
209 * describe the big_key key
211 void big_key_describe(const struct key *key, struct seq_file *m)
213 struct big_key_payload *payload = to_big_key_payload(key->payload);
215 seq_puts(m, key->description);
217 if (key_is_positive(key))
224 * read the key data
225 * - the key's semaphore is read-locked
227 long big_key_read(const struct key *key, char *buffer, size_t buflen)
229 struct big_key_payload *payload = to_big_key_payload(key->payload);
283 * Register key type