Lines Matching refs:prep_key
129 int fscrypt_prepare_key(struct fscrypt_prepared_key *prep_key, in fscrypt_prepare_key() argument
135 return fscrypt_prepare_inline_crypt_key(prep_key, raw_key, ci); in fscrypt_prepare_key()
146 smp_store_release(&prep_key->tfm, tfm); in fscrypt_prepare_key()
151 void fscrypt_destroy_prepared_key(struct fscrypt_prepared_key *prep_key) in fscrypt_destroy_prepared_key() argument
153 crypto_free_skcipher(prep_key->tfm); in fscrypt_destroy_prepared_key()
154 fscrypt_destroy_inline_crypt_key(prep_key); in fscrypt_destroy_prepared_key()
173 struct fscrypt_prepared_key *prep_key; in setup_per_mode_enc_key() local
182 prep_key = &keys[mode_num]; in setup_per_mode_enc_key()
183 if (fscrypt_is_key_prepared(prep_key, ci)) { in setup_per_mode_enc_key()
184 ci->ci_enc_key = *prep_key; in setup_per_mode_enc_key()
190 if (fscrypt_is_key_prepared(prep_key, ci)) in setup_per_mode_enc_key()
207 err = fscrypt_prepare_key(prep_key, mode_key, ci); in setup_per_mode_enc_key()
212 ci->ci_enc_key = *prep_key; in setup_per_mode_enc_key()