hmac

package
v0.0.0-...-93e11d5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMAC

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

func New

func New(ctx context.Context, secretID string) (hmac *HMAC, err error)

func (HMAC) Check

func (h HMAC) Check(ctx context.Context, message, signature string) (bool, error)

func (HMAC) Generate

func (h HMAC) Generate(ctx context.Context, message string) (string, error)

func (HMAC) GenerateRaw

func (h HMAC) GenerateRaw(ctx context.Context, message []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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