Function apple_codesign::compute_paged_hashes
source · [−]pub fn compute_paged_hashes(
data: &[u8],
hash: DigestType,
page_size: usize
) -> Result<Vec<Vec<u8>>, AppleCodesignError>
Expand description
Compute paged hashes.
This function takes a reference to data, chunks it into segments of page_size
up to
offset max_offset
and then hashes it with the specified algorithm, producing a
vector of binary hashes.
This is likely used as part of computing code hashes.