sign

package
v0.0.0-...-04f33d7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidSignature = errors.New("invalid signature")

Functions

This section is empty.

Types

type Signer

type Signer interface {
	Algorithm() string
	Sign(data string) []byte
	Verify(data string, signature []byte) error
}

func ES256

func ES256(secret []byte) Signer

func HS256

func HS256(secret []byte) Signer

func None

func None() Signer

Jump to

Keyboard shortcuts

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