Skip to main content

normalize_expected_digest

Function normalize_expected_digest 

Source
pub fn normalize_expected_digest(input: &str) -> Result<String, String>
Expand description

Parse an operator-supplied SHA-256 bundle digest.

Accepts exactly 64 hex characters, ignoring surrounding whitespace, and returns them lower-cased: the form bundle_digest produces and open_bundle compares against. Empty input is an error; there is no “skip” value.