pub fn decode_attested(
bytes: &[u8],
expected: &[u8; 32],
) -> Result<Chunk, AttestError>Expand description
Fingerprint bytes, compare to expected, then decode (untrusted).
Digest is checked before decode so a wrong expected digest never spends work on a hostile buffer beyond the fingerprint pass.