hmac

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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