Home
last modified time | relevance | path

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

/linux/fs/crypto/
A Dinline_crypt.c139 blk_key = kzalloc(struct_size(blk_key, devs, num_devs), GFP_KERNEL); in fscrypt_prepare_inline_crypt_key()
140 if (!blk_key) in fscrypt_prepare_inline_crypt_key()
143 blk_key->num_devs = num_devs; in fscrypt_prepare_inline_crypt_key()
169 blk_key->devs[i]); in fscrypt_prepare_inline_crypt_key()
182 smp_store_release(&prep_key->blk_key, blk_key); in fscrypt_prepare_inline_crypt_key()
187 blk_put_queue(blk_key->devs[i]); in fscrypt_prepare_inline_crypt_key()
188 kfree_sensitive(blk_key); in fscrypt_prepare_inline_crypt_key()
194 struct fscrypt_blk_crypto_key *blk_key = prep_key->blk_key; in fscrypt_destroy_inline_crypt_key() local
197 if (blk_key) { in fscrypt_destroy_inline_crypt_key()
199 blk_crypto_evict_key(blk_key->devs[i], &blk_key->base); in fscrypt_destroy_inline_crypt_key()
[all …]
A Dfscrypt_private.h187 struct fscrypt_blk_crypto_key *blk_key; member
369 return smp_load_acquire(&prep_key->blk_key) != NULL; in fscrypt_is_key_prepared()
/linux/block/
A Dblk-crypto.c321 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key, in blk_crypto_init_key() argument
328 memset(blk_key, 0, sizeof(*blk_key)); in blk_crypto_init_key()
343 blk_key->crypto_cfg.crypto_mode = crypto_mode; in blk_crypto_init_key()
344 blk_key->crypto_cfg.dun_bytes = dun_bytes; in blk_crypto_init_key()
345 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
346 blk_key->data_unit_size_bits = ilog2(data_unit_size); in blk_crypto_init_key()
347 blk_key->size = mode->keysize; in blk_crypto_init_key()
348 memcpy(blk_key->raw, raw_key, mode->keysize); in blk_crypto_init_key()
/linux/include/linux/
A Dblk-crypto.h92 int blk_crypto_init_key(struct blk_crypto_key *blk_key, const u8 *raw_key,

Completed in 8 milliseconds