Documentation ¶
Index ¶
- type Hash
- func New(data []byte, alg crypto.Hash) (*Hash, error)
- func NewRaw(hash []byte, alg crypto.Hash) *Hash
- func NewReader(r io.Reader, alg crypto.Hash) (h *Hash, read int64, err error)
- func NewReaderN(r io.Reader, n int64, alg crypto.Hash) (h *Hash, read int64, err error)
- func Parse(s string) (*Hash, error)
- func (h *Hash) Equal(h2 *Hash) bool
- func (h *Hash) EqualData(b []byte) bool
- func (h *Hash) EqualHash(hash []byte, alg crypto.Hash) bool
- func (h *Hash) EqualReader(r io.Reader) (bool, int64)
- func (h *Hash) EqualReaderN(r io.Reader, n int64) (bool, int64)
- func (h *Hash) EqualString(s string) bool
- func (h *Hash) HashAlgorithm() crypto.Hash
- func (h *Hash) HashAvailable() bool
- func (h *Hash) HashBytes() []byte
- func (h *Hash) HashSize() int
- func (h *Hash) Hasher() hash.Hash
- func (h *Hash) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
func NewReaderN ¶
func (*Hash) EqualString ¶
func (*Hash) HashAlgorithm ¶
func (*Hash) HashAvailable ¶
Click to show internal directories.
Click to hide internal directories.