Versions in this module Expand all Collapse all v0 v0.1.1 Aug 15, 2026 v0.1.0 Aug 15, 2026 Changes in this version + func FormatSRI(sri SRI) string + type Algorithm uint8 + const SHA256 + const SHA384 + const SHA512 + func (a Algorithm) String() string + type Digest struct + func ParseHex(algorithm Algorithm, value string) (Digest, error) + func (d Digest) Algorithm() Algorithm + func (d Digest) Bytes() []byte + func (d Digest) Equal(other Digest) bool + func (d Digest) Hex() string + func (d Digest) SRI() string + type ErrIncomplete struct + func (*ErrIncomplete) Error() string + type Reader struct + func NewReader(source io.Reader, algorithms ...Algorithm) (*Reader, error) + func (r *Reader) Read(p []byte) (int, error) + func (r *Reader) Result() Result + type Result struct + Bytes int64 + Complete bool + Digests []Digest + func (r Result) Verify(expected SRI) error + type SRI []Digest + func ParseSRI(value string) (SRI, error)