Searched refs:blk_key (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.6/fs/crypto/ |
D | inline_crypt.c | 160 struct blk_crypto_key *blk_key; in fscrypt_prepare_inline_crypt_key() local 166 blk_key = kmalloc(sizeof(*blk_key), GFP_KERNEL); in fscrypt_prepare_inline_crypt_key() 167 if (!blk_key) in fscrypt_prepare_inline_crypt_key() 170 err = blk_crypto_init_key(blk_key, raw_key, crypto_mode, in fscrypt_prepare_inline_crypt_key() 184 err = blk_crypto_start_using_key(devs[i], blk_key); in fscrypt_prepare_inline_crypt_key() 200 smp_store_release(&prep_key->blk_key, blk_key); in fscrypt_prepare_inline_crypt_key() 204 kfree_sensitive(blk_key); in fscrypt_prepare_inline_crypt_key() 211 struct blk_crypto_key *blk_key = prep_key->blk_key; in fscrypt_destroy_inline_crypt_key() local 216 if (!blk_key) in fscrypt_destroy_inline_crypt_key() 223 blk_crypto_evict_key(devs[i], blk_key); in fscrypt_destroy_inline_crypt_key() [all …]
|
D | fscrypt_private.h | 187 struct blk_crypto_key *blk_key; member 367 return smp_load_acquire(&prep_key->blk_key) != NULL; in fscrypt_is_key_prepared()
|
/Linux-v6.6/block/ |
D | blk-crypto.c | 328 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key, in blk_crypto_init_key() argument 335 memset(blk_key, 0, sizeof(*blk_key)); in blk_crypto_init_key() 350 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key() 351 blk_key->crypto_cfg.dun_bytes = dun_bytes; in blk_crypto_init_key() 352 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key() 353 blk_key->data_unit_size_bits = ilog2(data_unit_size); in blk_crypto_init_key() 354 blk_key->size = mode->keysize; in blk_crypto_init_key() 355 memcpy(blk_key->raw, raw_key, mode->keysize); in blk_crypto_init_key()
|
/Linux-v6.6/include/linux/ |
D | blk-crypto.h | 90 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key,
|