Function tugger_apple_codesign::compute_paged_hashes[][src]

pub fn compute_paged_hashes(
    data: &[u8],
    hash: DigestType,
    page_size: usize,
    max_offset: usize
) -> Result<Vec<Vec<u8>>, AppleCodesignError>

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.