Skip to main content

hash_from_path

Function hash_from_path 

Source
pub fn hash_from_path(path: impl AsRef<Path>) -> Result<String, SigmfError>
Expand description

Computes the SHA-512 digest of the file at path.

ยงErrors

Returns SigmfError::Io if the file cannot be opened or read.