Skip to main content

parse_algorithm

Function parse_algorithm 

Source
fn parse_algorithm(
    algorithm: Option<&str>,
) -> Result<Algorithm, RepositoryError>
Expand description

Parse a wire-format algorithm string (e.g. "fsverity-sha512-12"), falling back to the service default ([Algorithm::SHA512]) when omitted.