Lines Matching refs:digest_size
71 unsigned digest_size; /* digest size for the current hash algorithm */ member
127 return (u8 *)(io + 1) + v->shash_descsize + v->digest_size; in io_want_digest()
189 *offset = idx * v->digest_size; in verity_hash_at_level()
321 if (unlikely(memcmp(result, io_want_digest(v, io), v->digest_size))) { in verity_verify_level()
333 memcpy(io_want_digest(v, io), data, v->digest_size); in verity_verify_level()
376 memcpy(io_want_digest(v, io), v->root_digest, v->digest_size); in verity_verify_io()
437 if (unlikely(memcmp(result, io_want_digest(v, io), v->digest_size))) { in verity_verify_io()
609 for (x = 0; x < v->digest_size; x++) in verity_status()
823 v->digest_size = crypto_shash_digestsize(v->tfm); in verity_ctr()
824 if ((1 << v->hash_dev_block_bits) < v->digest_size * 2) { in verity_ctr()
832 v->root_digest = kmalloc(v->digest_size, GFP_KERNEL); in verity_ctr()
838 if (strlen(argv[8]) != v->digest_size * 2 || in verity_ctr()
839 hex2bin(v->root_digest, argv[8], v->digest_size)) { in verity_ctr()
895 __fls((1 << v->hash_dev_block_bits) / v->digest_size); in verity_ctr()
941 …ti->per_bio_data_size = roundup(sizeof(struct dm_verity_io) + v->shash_descsize + v->digest_size *… in verity_ctr()