size_t root_hash_size)
{
return VERITY_create_or_verify_hash(cd, 1,
- verity_hdr->version,
+ verity_hdr->hash_type,
verity_hdr->hash_name,
hash_device,
data_device,
{
int pgsize = crypt_getpagesize();
- if (verity_hdr->salt_size > VERITY_MAX_SALT_SIZE)
+ if (verity_hdr->salt_size > 256)
return -EINVAL;
if (verity_hdr->hash_block_size > pgsize ||
"size exceeds page size (%u).\n"), pgsize);
return VERITY_create_or_verify_hash(cd, 0,
- verity_hdr->version,
+ verity_hdr->hash_type,
verity_hdr->hash_name,
hash_device,
data_device,