Searched refs:mk (Results 1 – 4 of 4) sorted by relevance
/fs/crypto/ |
D | keyring.c | 56 struct fscrypt_master_key *mk = in fscrypt_free_master_key() local 64 kfree_sensitive(mk); in fscrypt_free_master_key() 67 void fscrypt_put_master_key(struct fscrypt_master_key *mk) in fscrypt_put_master_key() argument 69 if (!refcount_dec_and_test(&mk->mk_struct_refs)) in fscrypt_put_master_key() 76 WARN_ON_ONCE(refcount_read(&mk->mk_active_refs) != 0); in fscrypt_put_master_key() 77 key_put(mk->mk_users); in fscrypt_put_master_key() 78 mk->mk_users = NULL; in fscrypt_put_master_key() 79 call_rcu(&mk->mk_rcu_head, fscrypt_free_master_key); in fscrypt_put_master_key() 83 struct fscrypt_master_key *mk) in fscrypt_put_master_key_activeref() argument 87 if (!refcount_dec_and_test(&mk->mk_active_refs)) in fscrypt_put_master_key_activeref() [all …]
|
D | keysetup.c | 190 struct fscrypt_master_key *mk, in setup_per_mode_enc_key() argument 208 if (mk->mk_secret.is_hw_wrapped && S_ISREG(inode->i_mode)) { in setup_per_mode_enc_key() 235 mk->mk_secret.raw, in setup_per_mode_enc_key() 236 mk->mk_secret.size, true, in setup_per_mode_enc_key() 252 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, in setup_per_mode_enc_key() 277 static int fscrypt_derive_siphash_key(const struct fscrypt_master_key *mk, in fscrypt_derive_siphash_key() argument 283 err = fscrypt_hkdf_expand(&mk->mk_secret.hkdf, context, info, infolen, in fscrypt_derive_siphash_key() 296 const struct fscrypt_master_key *mk) in fscrypt_derive_dirhash_key() argument 300 err = fscrypt_derive_siphash_key(mk, HKDF_CONTEXT_DIRHASH_KEY, in fscrypt_derive_dirhash_key() 310 const struct fscrypt_master_key *mk) in fscrypt_hash_inode_number() argument [all …]
|
D | hooks.c | 173 struct fscrypt_master_key *mk; in fscrypt_prepare_setflags() local 188 mk = ci->ci_master_key; in fscrypt_prepare_setflags() 189 down_read(&mk->mk_sem); in fscrypt_prepare_setflags() 190 if (is_master_key_secret_present(&mk->mk_secret)) in fscrypt_prepare_setflags() 191 err = fscrypt_derive_dirhash_key(ci, mk); in fscrypt_prepare_setflags() 194 up_read(&mk->mk_sem); in fscrypt_prepare_setflags()
|
D | fscrypt_private.h | 662 void fscrypt_put_master_key(struct fscrypt_master_key *mk); 665 struct fscrypt_master_key *mk); 707 const struct fscrypt_master_key *mk); 710 const struct fscrypt_master_key *mk);
|