Documentation ¶ Index ¶ type Method func New(algorithm string, secret []byte) (*Method, error) func (method *Method) GetName() string func (method *Method) Sign(message []byte) ([]byte, error) func (method *Method) Verify(message []byte, signature []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Method ¶ type Method struct { Secret []byte HashFunc func() hash.Hash Name string } func New ¶ func New(algorithm string, secret []byte) (*Method, error) func (*Method) GetName ¶ func (method *Method) GetName() string func (*Method) Sign ¶ func (method *Method) Sign(message []byte) ([]byte, error) func (*Method) Verify ¶ func (method *Method) Verify(message []byte, signature []byte) error Source Files ¶ View all Source files hmac.go Click to show internal directories. Click to hide internal directories.