cipher

package
v0.0.0-...-083fe0d Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecript

func AESDecript(key, data []byte) ([]byte, error)

func AESEncript

func AESEncript(key, data []byte) ([]byte, error)

func GeneratePrivEd25519

func GeneratePrivEd25519() (ed25519.PrivateKey, error)

func GenerateSesKey

func GenerateSesKey() []byte

func GetSHA256

func GetSHA256(src []byte) []byte

func RSADecrypt

func RSADecrypt(data []byte, privKey *rsa.PrivateKey) ([]byte, error)

func RSAEncrypt

func RSAEncrypt(data []byte, key *rsa.PublicKey) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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