sign

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto interface {
	Sign(value string) (string, error)
	Verify(mac, value string) bool
}

func NewCrypto

func NewCrypto(sign SignHandle) Crypto

type SignHandle

type SignHandle interface {
	Hash(msg []byte) ([]byte, error)
	Sign(digest []byte) ([]byte, error)
	Verify(sign, digest []byte) (bool, error)
}

Jump to

Keyboard shortcuts

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