Home
last modified time | relevance | path

Searched refs:blk_key (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/kernel/fs/crypto/
H A Dinline_crypt.c141 struct fscrypt_blk_crypto_key *blk_key; in fscrypt_prepare_inline_crypt_key() local
145 blk_key = kzalloc(struct_size(blk_key, devs, num_devs), GFP_KERNEL); in fscrypt_prepare_inline_crypt_key()
146 if (!blk_key) in fscrypt_prepare_inline_crypt_key()
149 blk_key->num_devs = num_devs; in fscrypt_prepare_inline_crypt_key()
150 fscrypt_get_devices(sb, num_devs, blk_key->devs); in fscrypt_prepare_inline_crypt_key()
155 err = blk_crypto_init_key(&blk_key->base, raw_key, raw_key_size, in fscrypt_prepare_inline_crypt_key()
171 if (!blk_get_queue(blk_key->devs[i])) { in fscrypt_prepare_inline_crypt_key()
178 err = blk_crypto_start_using_key(&blk_key->base, in fscrypt_prepare_inline_crypt_key()
179 blk_key->devs[i]); in fscrypt_prepare_inline_crypt_key()
192 smp_store_release(&prep_key->blk_key, blk_key); in fscrypt_prepare_inline_crypt_key()
[all …]
H A Dfscrypt_private.h184 struct fscrypt_blk_crypto_key *blk_key; member
384 return smp_load_acquire(&prep_key->blk_key) != NULL; in fscrypt_is_key_prepared()
/OK3568_Linux_fs/kernel/block/
H A Dblk-crypto.c325 int blk_crypto_init_key(struct blk_crypto_key *blk_key, in blk_crypto_init_key() argument
334 memset(blk_key, 0, sizeof(*blk_key)); in blk_crypto_init_key()
357 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()
358 blk_key->crypto_cfg.dun_bytes = dun_bytes; in blk_crypto_init_key()
359 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
360 blk_key->crypto_cfg.is_hw_wrapped = is_hw_wrapped; in blk_crypto_init_key()
361 blk_key->data_unit_size_bits = ilog2(data_unit_size); in blk_crypto_init_key()
362 blk_key->size = raw_key_size; in blk_crypto_init_key()
363 memcpy(blk_key->raw, raw_key, raw_key_size); in blk_crypto_init_key()
/OK3568_Linux_fs/kernel/include/linux/
H A Dblk-crypto.h97 int blk_crypto_init_key(struct blk_crypto_key *blk_key,