Home
last modified time | relevance | path

Searched refs:prep_key (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/fs/crypto/
H A Dfscrypt_private.h342 int fscrypt_prepare_inline_crypt_key(struct fscrypt_prepared_key *prep_key,
346 void fscrypt_destroy_inline_crypt_key(struct fscrypt_prepared_key *prep_key);
350 * @prep_key, depending on which encryption implementation the file will use.
353 fscrypt_is_key_prepared(struct fscrypt_prepared_key *prep_key, in fscrypt_is_key_prepared() argument
359 * I.e., in some cases (namely, if this prep_key is a per-mode in fscrypt_is_key_prepared()
365 return smp_load_acquire(&prep_key->blk_key) != NULL; in fscrypt_is_key_prepared()
366 return smp_load_acquire(&prep_key->tfm) != NULL; in fscrypt_is_key_prepared()
383 fscrypt_prepare_inline_crypt_key(struct fscrypt_prepared_key *prep_key, in fscrypt_prepare_inline_crypt_key() argument
392 fscrypt_destroy_inline_crypt_key(struct fscrypt_prepared_key *prep_key) in fscrypt_destroy_inline_crypt_key() argument
397 fscrypt_is_key_prepared(struct fscrypt_prepared_key *prep_key, in fscrypt_is_key_prepared() argument
[all...]
H A Dkeysetup.c123 * Prepare the crypto transform object or blk-crypto key in @prep_key, given the
127 int fscrypt_prepare_key(struct fscrypt_prepared_key *prep_key, in fscrypt_prepare_key() argument
133 return fscrypt_prepare_inline_crypt_key(prep_key, raw_key, ci); in fscrypt_prepare_key()
144 smp_store_release(&prep_key->tfm, tfm); in fscrypt_prepare_key()
149 void fscrypt_destroy_prepared_key(struct fscrypt_prepared_key *prep_key) in fscrypt_destroy_prepared_key() argument
151 crypto_free_skcipher(prep_key->tfm); in fscrypt_destroy_prepared_key()
152 fscrypt_destroy_inline_crypt_key(prep_key); in fscrypt_destroy_prepared_key()
153 memzero_explicit(prep_key, sizeof(*prep_key)); in fscrypt_destroy_prepared_key()
172 struct fscrypt_prepared_key *prep_key; in setup_per_mode_enc_key() local
[all...]
H A Dinline_crypt.c126 int fscrypt_prepare_inline_crypt_key(struct fscrypt_prepared_key *prep_key, in fscrypt_prepare_inline_crypt_key() argument
182 smp_store_release(&prep_key->blk_key, blk_key); in fscrypt_prepare_inline_crypt_key()
192 void fscrypt_destroy_inline_crypt_key(struct fscrypt_prepared_key *prep_key) in fscrypt_destroy_inline_crypt_key() argument
194 struct fscrypt_blk_crypto_key *blk_key = prep_key->blk_key; in fscrypt_destroy_inline_crypt_key()
/kernel/linux/linux-6.6/fs/crypto/
H A Dfscrypt_private.h343 int fscrypt_prepare_inline_crypt_key(struct fscrypt_prepared_key *prep_key,
348 struct fscrypt_prepared_key *prep_key);
352 * @prep_key, depending on which encryption implementation the file will use.
355 fscrypt_is_key_prepared(struct fscrypt_prepared_key *prep_key, in fscrypt_is_key_prepared() argument
361 * I.e., in some cases (namely, if this prep_key is a per-mode in fscrypt_is_key_prepared()
367 return smp_load_acquire(&prep_key->blk_key) != NULL; in fscrypt_is_key_prepared()
368 return smp_load_acquire(&prep_key->tfm) != NULL; in fscrypt_is_key_prepared()
385 fscrypt_prepare_inline_crypt_key(struct fscrypt_prepared_key *prep_key, in fscrypt_prepare_inline_crypt_key() argument
395 struct fscrypt_prepared_key *prep_key) in fscrypt_destroy_inline_crypt_key()
400 fscrypt_is_key_prepared(struct fscrypt_prepared_key *prep_key, in fscrypt_is_key_prepared() argument
394 fscrypt_destroy_inline_crypt_key(struct super_block *sb, struct fscrypt_prepared_key *prep_key) fscrypt_destroy_inline_crypt_key() argument
[all...]
H A Dkeysetup.c145 * Prepare the crypto transform object or blk-crypto key in @prep_key, given the
150 int fscrypt_prepare_key(struct fscrypt_prepared_key *prep_key, in fscrypt_prepare_key() argument
156 return fscrypt_prepare_inline_crypt_key(prep_key, raw_key, ci); in fscrypt_prepare_key()
167 smp_store_release(&prep_key->tfm, tfm); in fscrypt_prepare_key()
173 struct fscrypt_prepared_key *prep_key) in fscrypt_destroy_prepared_key()
175 crypto_free_skcipher(prep_key->tfm); in fscrypt_destroy_prepared_key()
176 fscrypt_destroy_inline_crypt_key(sb, prep_key); in fscrypt_destroy_prepared_key()
177 memzero_explicit(prep_key, sizeof(*prep_key)); in fscrypt_destroy_prepared_key()
196 struct fscrypt_prepared_key *prep_key; in setup_per_mode_enc_key() local
172 fscrypt_destroy_prepared_key(struct super_block *sb, struct fscrypt_prepared_key *prep_key) fscrypt_destroy_prepared_key() argument
[all...]
H A Dinline_crypt.c153 int fscrypt_prepare_inline_crypt_key(struct fscrypt_prepared_key *prep_key, in fscrypt_prepare_inline_crypt_key() argument
200 smp_store_release(&prep_key->blk_key, blk_key); in fscrypt_prepare_inline_crypt_key()
209 struct fscrypt_prepared_key *prep_key) in fscrypt_destroy_inline_crypt_key()
211 struct blk_crypto_key *blk_key = prep_key->blk_key; in fscrypt_destroy_inline_crypt_key()
208 fscrypt_destroy_inline_crypt_key(struct super_block *sb, struct fscrypt_prepared_key *prep_key) fscrypt_destroy_inline_crypt_key() argument

Completed in 5 milliseconds