Skip to main content

verify_reader

Function verify_reader 

Source
pub fn verify_reader(
    reader: impl Read,
    max_bytes: u64,
    expected: Sha256Digest,
) -> Result<ArtifactIdentity, ArtifactError>
Expand description

Verify a complete bounded stream before the caller extracts or uses its bytes.

ยงErrors

Returns read/limit failures or a typed mismatch with the observed identity.