hmac

package
v1.2.117 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MySelf

func MySelf(hasher func() hash.Hash, key []byte) ([]byte, error)

func SumBytes

func SumBytes(hasher func() hash.Hash, key []byte, b []byte) []byte

func SumFile

func SumFile(hasher func() hash.Hash, key []byte, name string) ([]byte, error)

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 SumHex

func SumHex(hasher func() hash.Hash, key []byte, b string) string

func SumReader

func SumReader(hasher func() hash.Hash, key []byte, r io.Reader) ([]byte, error)

func SumReaderAt

func SumReaderAt(hasher func() hash.Hash, key []byte, r io.ReaderAt, offset, size int64, buf []byte) ([]byte, error)

func SumString

func SumString(hasher func() hash.Hash, key []byte, b string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL