hmac

package
v1.6.22 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMACSigner

type HMACSigner struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(secretKey string, hashFunc crypto.Hash) *HMACSigner

func (*HMACSigner) Debug

func (s *HMACSigner) Debug(enabled bool)

func (*HMACSigner) HashFunc

func (s *HMACSigner) HashFunc() crypto.Hash

func (*HMACSigner) Sign

func (s *HMACSigner) Sign(method string, reqUrl string, accessKey string, timestamp string) (string, error)

Jump to

Keyboard shortcuts

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