Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHashMalformed = errors.New("malformed hash specifier") ErrHashUnrecognized = errors.New("unrecognized hash function") )
Functions ¶
func AssertValid ¶
func AssertValid(verify types.Verification, data []byte) error
Types ¶
type ErrHashMismatch ¶
ErrHashMismatch is returned when the calculated hash for a fetched object doesn't match the expected sum of the object.
func (ErrHashMismatch) Error ¶
func (e ErrHashMismatch) Error() string
Click to show internal directories.
Click to hide internal directories.