Skip to main content

compute_checksum

Function compute_checksum 

Source
pub fn compute_checksum(
    path: &Path,
    algorithm: &ChecksumAlgorithm,
) -> Result<String, KgetError>
Expand description

Compute the checksum of a file using the specified algorithm.

Returns the lowercase hex-encoded digest.