Home
last modified time | relevance | path

Searched refs:blk_crypto_key (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/include/linux/
Dblk-crypto.h47 struct blk_crypto_key { struct
67 const struct blk_crypto_key *bc_key; argument
84 void bio_crypt_set_ctx(struct bio *bio, const struct blk_crypto_key *key,
92 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key,
97 int blk_crypto_start_using_key(const struct blk_crypto_key *key,
101 const struct blk_crypto_key *key);
Dblk-crypto-profile.h38 const struct blk_crypto_key *key,
58 const struct blk_crypto_key *key,
142 const struct blk_crypto_key *key,
151 const struct blk_crypto_key *key);
/linux-6.1.9/block/
Dblk-crypto-profile.c40 const struct blk_crypto_key *key;
164 const struct blk_crypto_key *key) in blk_crypto_hash_bucket_for_key()
183 const struct blk_crypto_key *key) in blk_crypto_find_keyslot()
198 const struct blk_crypto_key *key) in blk_crypto_find_and_grab_keyslot()
242 const struct blk_crypto_key *key, in blk_crypto_get_keyslot()
374 const struct blk_crypto_key *key) in __blk_crypto_evict_key()
430 const struct blk_crypto_key *key = profile->slots[slot].key; in blk_crypto_reprogram_all_keys()
Dblk-crypto.c84 void bio_crypt_set_ctx(struct bio *bio, const struct blk_crypto_key *key, in bio_crypt_set_ctx()
269 const struct blk_crypto_key *bc_key = bio->bi_crypt_context->bc_key; in __blk_crypto_bio_prep()
323 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key, in blk_crypto_init_key()
382 int blk_crypto_start_using_key(const struct blk_crypto_key *key, in blk_crypto_start_using_key()
404 const struct blk_crypto_key *key) in blk_crypto_evict_key()
Dblk-crypto-internal.h198 int blk_crypto_fallback_evict_key(const struct blk_crypto_key *key);
217 blk_crypto_fallback_evict_key(const struct blk_crypto_key *key) in blk_crypto_fallback_evict_key()
Dblk-crypto-fallback.c109 const struct blk_crypto_key *key, in blk_crypto_fallback_keyslot_program()
132 const struct blk_crypto_key *key, in blk_crypto_fallback_keyslot_evict()
527 int blk_crypto_fallback_evict_key(const struct blk_crypto_key *key) in blk_crypto_fallback_evict_key()
/linux-6.1.9/Documentation/block/
Dinline-encryption.rst79 We introduce ``struct blk_crypto_key`` to represent an inline encryption key and
86 contains a data unit number and a pointer to a blk_crypto_key. We add pointers
108 keeps track of which blk_crypto_key that keyslot contains (if any), and how many
191 takes in a ``struct blk_crypto_config`` which is like blk_crypto_key, but omits
195 ``blk_crypto_init_key()`` allows users to initialize a blk_crypto_key.
198 a blk_crypto_key on a request_queue (even if ``blk_crypto_config_supported()``
205 it to a bio, given the blk_crypto_key and the data unit number that will be used
209 Finally, when done using inline encryption with a blk_crypto_key on a
214 In summary, for users of the block layer, the lifecycle of a blk_crypto_key is
222 6. Zeroize the blk_crypto_key (this has no dedicated function)
[all …]
/linux-6.1.9/drivers/mmc/host/
Dcqhci-crypto.c62 const struct blk_crypto_key *key, in cqhci_crypto_keyslot_program()
120 const struct blk_crypto_key *key, in cqhci_crypto_keyslot_evict()
/linux-6.1.9/drivers/ufs/core/
Dufshcd-crypto.c52 const struct blk_crypto_key *key, in ufshcd_crypto_keyslot_program()
110 const struct blk_crypto_key *key, in ufshcd_crypto_keyslot_evict()
/linux-6.1.9/fs/crypto/
Dinline_crypt.c163 struct blk_crypto_key *blk_key; in fscrypt_prepare_inline_crypt_key()
215 struct blk_crypto_key *blk_key = prep_key->blk_key; in fscrypt_destroy_inline_crypt_key()
Dfscrypt_private.h187 struct blk_crypto_key *blk_key;
/linux-6.1.9/drivers/md/
Ddm-table.c1208 const struct blk_crypto_key *key;
1230 const struct blk_crypto_key *key, unsigned int slot) in dm_keyslot_evict()