part

package
v0.28.20241212155801 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPemType = errors.New(`ErrPemType`)
)

Functions

func Decrypt

func Decrypt(b, priKey []byte) (msg []byte, e error)

func Encrypt

func Encrypt(msg, pubKey []byte) (b []byte, e error)

func NewKey added in v0.28.20240821214042

func NewKey() (pri, pub []byte, e error)

Types

type Gcm

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

func (*Gcm) Decrypt

func (t *Gcm) Decrypt(source []byte) (r []byte, e error)

func (*Gcm) Encrypt

func (t *Gcm) Encrypt(source []byte) (r []byte, e error)

func (*Gcm) Init

func (t *Gcm) Init(key string) error

Jump to

Keyboard shortcuts

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