Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotSupported is returned when the hash is unsupported ErrNotSupported errNotSupported // ErrInvalidFormat is returned when the hash format is invalid ErrInvalidFormat errInvalidFormat // ErrKeyInvalid is returned when the hash key config is invalid ErrKeyInvalid errKeyInvalid )
Functions ¶
Types ¶
type AlgsMap ¶
type AlgsMap struct {
// contains filtered or unexported fields
}
func NewAlgsMap ¶
func NewAlgsMap() *AlgsMap
type Hasher ¶
type Hasher interface { ID() string Hash(msg []byte) (string, error) Verify(msg []byte, msghash string) (bool, error) }
Hasher is a hash interface
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
Verifier verifies hashes
func NewVerifier ¶ added in v0.2.3
func NewVerifier() *Verifier
Click to show internal directories.
Click to hide internal directories.