Home
last modified time | relevance | path

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

/block/
Dblk-crypto-fallback.c266 int data_unit_size; in blk_crypto_fallback_encrypt_bio() local
282 data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_encrypt_bio()
311 skcipher_request_set_crypt(ciph_req, &src, &dst, data_unit_size, in blk_crypto_fallback_encrypt_bio()
328 sg_set_page(&src, plaintext_page, data_unit_size, in blk_crypto_fallback_encrypt_bio()
330 sg_set_page(&dst, ciphertext_page, data_unit_size, in blk_crypto_fallback_encrypt_bio()
334 for (j = 0; j < enc_bvec->bv_len; j += data_unit_size) { in blk_crypto_fallback_encrypt_bio()
343 src.offset += data_unit_size; in blk_crypto_fallback_encrypt_bio()
344 dst.offset += data_unit_size; in blk_crypto_fallback_encrypt_bio()
389 const int data_unit_size = bc->bc_key->crypto_cfg.data_unit_size; in blk_crypto_fallback_decrypt_bio() local
411 skcipher_request_set_crypt(ciph_req, &sg, &sg, data_unit_size, in blk_crypto_fallback_decrypt_bio()
[all …]
Dblk-crypto.c208 const unsigned int data_unit_size = in bio_crypt_check_alignment() local
209 bio->bi_crypt_context->bc_key->crypto_cfg.data_unit_size; in bio_crypt_check_alignment()
214 if (!IS_ALIGNED(bv.bv_len | bv.bv_offset, data_unit_size)) in bio_crypt_check_alignment()
331 unsigned int data_unit_size) in blk_crypto_init_key() argument
355 if (!is_power_of_2(data_unit_size)) in blk_crypto_init_key()
360 blk_key->crypto_cfg.data_unit_size = data_unit_size; in blk_crypto_init_key()
362 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()