Documentation ¶
Index ¶
- func MySelf(hasher func() hash.Hash, key []byte) ([]byte, error)
- func SumBytes(hasher func() hash.Hash, key []byte, b []byte) []byte
- func SumFile(hasher func() hash.Hash, key []byte, name string) ([]byte, error)
- func SumFileAt(hasher func() hash.Hash, key []byte, name string, offset, size int64, ...) ([]byte, error)
- func SumHex(hasher func() hash.Hash, key []byte, b string) string
- func SumReader(hasher func() hash.Hash, key []byte, r io.Reader) ([]byte, error)
- func SumReaderAt(hasher func() hash.Hash, key []byte, r io.ReaderAt, offset, size int64, ...) ([]byte, error)
- func SumString(hasher func() hash.Hash, key []byte, b string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SumFileAt ¶
func SumFileAt(hasher func() hash.Hash, key []byte, name string, offset, size int64, buf []byte) ([]byte, error)
SumFileAt return ms5sum of data by offset and len is size buf is a buffer to read from file every time.
func SumReaderAt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.