// Reads the zigbert.sf and extract the SHA1-Digest-Manifest
Reads the zigbert.sf and extract the SHA1-Digest-Manifest
Reads the zigbert . sf and extract the SHA1 - Digest - Manifest
pub fn read_signature_manifest<B: BufRead + Seek>(mut cur: &mut B) -> Result<String, ()> {
    // Parse the header.
    let header = parse_new_line(&mut cur)?;
    if header.0 != "Signature-Version" {
        return Err(());
    }
    loop {
        let line = parse_new_line(&mut cur)?;
        if line.0 == "SHA1-Digest-Manifest" {
            return Ok(line.1);
        }
    }
}
pub fn read_signature_manifest < B : BufRead + Seek > ( mut cur : & mut B ) -> Result < String , ( ) > { // Parse the header. let header = parse_new_line ( & mut cur ) ? ; if header . 0 != " " { return Err ( ( ) ) ; } loop { let line = parse_new_line ( & mut cur ) ? ; if line . 0 == " " { return Ok ( line . 1 ) ; } } }
Reads the zigbert.sf and extract the SHA1-Digest-Manifest
Reads the zigbert . sf and extract the SHA1 - Digest - Manifest
cur
&mut B