Documentation
¶
Overview ¶
Package content streams plaintext payloads independently of Artifact IR and storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrSizeMismatch = errors.New("payload size mismatch") ErrDigestMismatch = errors.New("payload digest mismatch") )
Functions ¶
func VerifyCopy ¶
VerifyCopy streams plaintext from src to dst and verifies its size and SHA-256. Both streams are borrowed; the caller owns opening and closing them, and resolving or decrypting the source independently of the plaintext digest. Bytes written before success are unverified: callers must stage them and only publish/use the destination after VerifyCopy returns nil. Cancellation is checked between reads and writes. The caller must arrange interruption of blocking I/O when required.
Types ¶
This section is empty.