Lines Matching refs:internal_hash
219 struct crypto_shash *internal_hash; member
1653 SHASH_DESC_ON_STACK(req, ic->internal_hash); in integrity_sector_checksum()
1657 req->tfm = ic->internal_hash; in integrity_sector_checksum()
1691 digest_size = crypto_shash_digestsize(ic->internal_hash); in integrity_sector_checksum()
1709 if (ic->internal_hash) { in integrity_metadata()
1712 unsigned digest_size = crypto_shash_digestsize(ic->internal_hash); in integrity_metadata()
1920 if (!ic->internal_hash) { in dm_integrity_map()
2000 if (ic->internal_hash) { in __journal_read_write()
2014 if (!ic->internal_hash) { in __journal_read_write()
2050 if (ic->internal_hash) { in __journal_read_write()
2051 unsigned digest_size = crypto_shash_digestsize(ic->internal_hash); in __journal_read_write()
2112 bool need_sync_io = ic->internal_hash && dio->op == REQ_OP_READ; in dm_integrity_map_continue()
2551 ic->internal_hash) { in do_journal_write()
4158 r = get_mac(&ic->internal_hash, &ic->internal_hash_alg, &ti->error, in dm_integrity_ctr()
4169 if (!ic->internal_hash) { in dm_integrity_ctr()
4174 ic->tag_size = crypto_shash_digestsize(ic->internal_hash); in dm_integrity_ctr()
4186 if (ic->mode == 'B' && !ic->internal_hash) { in dm_integrity_ctr()
4192 if (ic->discard && !ic->internal_hash) { in dm_integrity_ctr()
4410 if (ic->internal_hash) { in dm_integrity_ctr()
4426 if (crypto_shash_digestsize(ic->internal_hash) > ic->tag_size) in dm_integrity_ctr()
4427 recalc_tags_size += crypto_shash_digestsize(ic->internal_hash) - ic->tag_size; in dm_integrity_ctr()
4537 if (!ic->internal_hash) in dm_integrity_ctr()
4612 if (ic->internal_hash) in dm_integrity_dtr()
4613 crypto_free_shash(ic->internal_hash); in dm_integrity_dtr()