ende

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 18 Imported by: 0

README

加解密工具

Documentation

Index

Constants

View Source
const DecodeTypeID = "7e592fd2-6cd8-4953-8fae-8c3a9915bef7"
View Source
const EncodeTypeID = "4f0d40c6-9822-4346-ae23-3a54b866b96a"

Variables

This section is empty.

Functions

func DecodeConfigTypeLive

func DecodeConfigTypeLive() *dot.ConfigTypeLive

DecodeConfigTypeLive

func DecodeTypeLives

func DecodeTypeLives() []*dot.TypeLives

DecodeTypeLives

func EncodeConfigTypeLive

func EncodeConfigTypeLive() *dot.ConfigTypeLive

EncodeConfigTypeLive

func EncodeTypeLives

func EncodeTypeLives() []*dot.TypeLives

EncodeTypeLives

func GenerateEd25519Key

func GenerateEd25519Key(rand io.Reader) (privateKey ed25519.PrivateKey, publicKey ed25519.PublicKey, err error)

func GenerateKey

func GenerateKey(name string)

func GenerateX25519Key

func GenerateX25519Key(rand io.Reader) (privateKey sx255192.PrivateKey, publicKey sx255192.PublicKey, err error)

func SendSignal

func SendSignal(s syscall.Signal) error

func SignEd25519

func SignEd25519(privateKey ed25519.PrivateKey, hash []byte) (signature []byte, publicBytes []byte)

func ToSigningHash

func ToSigningHash(data []byte) (hash []byte)

func VerifyEd25519

func VerifyEd25519(publicKey ed25519.PublicKey, hash []byte, signature []byte) bool

Types

type Decode

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

func (*Decode) Start

func (c *Decode) Start(ignore bool) error

type Encode

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

func (*Encode) Start

func (c *Encode) Start(ignore bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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