Home
last modified time | relevance | path

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

/block/
Dblk-crypto-fallback.c267 int data_unit_size; in blk_crypto_fallback_encrypt_bio() local
283 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
313 skcipher_request_set_crypt(ciph_req, &src, &dst, data_unit_size, in blk_crypto_fallback_encrypt_bio()
330 sg_set_page(&src, plaintext_page, data_unit_size, in blk_crypto_fallback_encrypt_bio()
332 sg_set_page(&dst, ciphertext_page, data_unit_size, in blk_crypto_fallback_encrypt_bio()
336 for (j = 0; j < enc_bvec->bv_len; j += data_unit_size) { in blk_crypto_fallback_encrypt_bio()
345 src.offset += data_unit_size; in blk_crypto_fallback_encrypt_bio()
346 dst.offset += data_unit_size; in blk_crypto_fallback_encrypt_bio()
391 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio() local
414 skcipher_request_set_crypt(ciph_req, &sg, &sg, data_unit_size, in blk_crypto_fallback_decrypt_bio()
[all …]
Dblk-crypto.c227 const unsigned int data_unit_size = in bio_crypt_check_alignment() local
228 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()
233 if (!IS_ALIGNED(bv.bv_len | bv.bv_offset, data_unit_size)) in bio_crypt_check_alignment()
346 unsigned int data_unit_size) in blk_crypto_init_key() argument
373 if (!is_power_of_2(data_unit_size)) in blk_crypto_init_key()
378 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
380 blk_key->data_unit_size_bits = ilog2(data_unit_size); in blk_crypto_init_key()
Dkeyslot-manager.c339 cfg->data_unit_size)) in blk_ksm_crypto_cfg_supported()
Dblk-crypto-profile.c360 if (!(profile->modes_supported[cfg->crypto_mode] & cfg->data_unit_size)) in __blk_crypto_cfg_supported()