hmac

package
v1.371.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled

func IsEnabled(cfg *Config) bool

IsEnabled for hmac.

Types

type Config

type Config struct {
	Key string `yaml:"key,omitempty" json:"key,omitempty" toml:"key,omitempty"`
}

Config for hmac.

func (*Config) GetKey

func (c *Config) GetKey() (string, error)

GetKey for hmac.

type Generator added in v1.367.0

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

Generator for hmac.

func NewGenerator added in v1.367.0

func NewGenerator(gen *rand.Generator) *Generator

NewGenerator for hmac.

func (*Generator) Generate added in v1.367.0

func (g *Generator) Generate() (string, error)

Generate for hmac.

type Signer added in v1.367.0

type Signer interface {
	algo.Signer
}

Signer for hmac.

func NewSigner added in v1.367.0

func NewSigner(cfg *Config) (Signer, error)

NewSigner for hmac.

Jump to

Keyboard shortcuts

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