Searched refs:blk_key (Results 1 – 4 of 4) sorted by relevance
/linux-6.15/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, ci->ci_mode->keysize, in fscrypt_prepare_inline_crypt_key() 186 err = blk_crypto_start_using_key(devs[i], blk_key); in fscrypt_prepare_inline_crypt_key() 202 smp_store_release(&prep_key->blk_key, blk_key); in fscrypt_prepare_inline_crypt_key() 206 kfree_sensitive(blk_key); in fscrypt_prepare_inline_crypt_key() 213 struct blk_crypto_key *blk_key = prep_key->blk_key; in fscrypt_destroy_inline_crypt_key() local 218 if (!blk_key) in fscrypt_destroy_inline_crypt_key() 225 blk_crypto_evict_key(devs[i], blk_key); in fscrypt_destroy_inline_crypt_key() [all …]
|
D | fscrypt_private.h | 208 struct blk_crypto_key *blk_key; member 411 return smp_load_acquire(&prep_key->blk_key) != NULL; in fscrypt_is_key_prepared()
|
/linux-6.15/block/ |
D | blk-crypto.c | 339 int blk_crypto_init_key(struct blk_crypto_key *blk_key, in blk_crypto_init_key() argument 348 memset(blk_key, 0, sizeof(*blk_key)); in blk_crypto_init_key() 374 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key() 375 blk_key->crypto_cfg.dun_bytes = dun_bytes; in blk_crypto_init_key() 376 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key() 377 blk_key->crypto_cfg.key_type = key_type; in blk_crypto_init_key() 378 blk_key->data_unit_size_bits = ilog2(data_unit_size); in blk_crypto_init_key() 379 blk_key->size = key_size; in blk_crypto_init_key() 380 memcpy(blk_key->bytes, key_bytes, key_size); in blk_crypto_init_key()
|
/linux-6.15/include/linux/ |
D | blk-crypto.h | 143 int blk_crypto_init_key(struct blk_crypto_key *blk_key,
|