• Home
  • Raw
  • Download

Lines Matching refs:key

306 static struct key *request_user_key(const char *master_desc, u8 **master_key,  in request_user_key()
310 struct key *ukey; in request_user_key()
345 static int calc_hmac(u8 *digest, const u8 *key, unsigned int keylen, in calc_hmac() argument
357 ret = crypto_shash_setkey(hmacalg, key, keylen); in calc_hmac()
411 static int init_blkcipher_desc(struct blkcipher_desc *desc, const u8 *key, in init_blkcipher_desc() argument
425 ret = crypto_blkcipher_setkey(desc->tfm, key, key_len); in init_blkcipher_desc()
435 static struct key *request_master_key(struct encrypted_key_payload *epayload, in request_master_key()
438 struct key *mkey = ERR_PTR(-EINVAL); in request_master_key()
605 static struct encrypted_key_payload *encrypted_key_alloc(struct key *key, in encrypted_key_alloc() argument
642 ret = key_payload_reserve(key, payload_datalen + datablob_len in encrypted_key_alloc()
661 struct key *mkey; in encrypted_key_decrypt()
783 static int encrypted_instantiate(struct key *key, in encrypted_instantiate() argument
808 epayload = encrypted_key_alloc(key, format, master_desc, in encrypted_instantiate()
814 ret = encrypted_init(epayload, key->description, format, master_desc, in encrypted_instantiate()
821 rcu_assign_keypointer(key, epayload); in encrypted_instantiate()
845 static int encrypted_update(struct key *key, struct key_preparsed_payload *prep) in encrypted_update() argument
847 struct encrypted_key_payload *epayload = key->payload.data; in encrypted_update()
855 if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) in encrypted_update()
874 new_epayload = encrypted_key_alloc(key, epayload->format, in encrypted_update()
888 rcu_assign_keypointer(key, new_epayload); in encrypted_update()
903 static long encrypted_read(const struct key *key, char __user *buffer, in encrypted_read() argument
907 struct key *mkey; in encrypted_read()
915 epayload = rcu_dereference_key(key); in encrypted_read()
967 static void encrypted_destroy(struct key *key) in encrypted_destroy() argument
969 struct encrypted_key_payload *epayload = key->payload.data; in encrypted_destroy()
975 kfree(key->payload.data); in encrypted_destroy()