crypt

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPlugin = errors.New("ErrInvalidAppId:plugin unregister")
)

Functions

func Register

func Register(name string, exec Encrypt)

Types

type Encrypt

type Encrypt interface {
	Sign(msg []byte, privkey []byte) ([]byte, error)
	Verify(msg []byte, sig []byte, pubkey []byte) (bool, error)
}

func Load

func Load(name string) (Encrypt, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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