key_management

package
v0.0.0-...-6e57485 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(message, inputPublicKey, inputPrivateKey []byte) ([]byte, error)

func Encrypt

func Encrypt(input, pubkey []byte) ([]byte, error)

func GenerateKeypair

func GenerateKeypair() (publicKey, privateKey []byte)

func KeysFromCertKey

func KeysFromCertKey(cerKey []byte, key *rsa.PrivateKey) ([]byte, []byte, []byte, error)

func LoadCertificate

func LoadCertificate(name, loc string) ([]byte, error)

func LoadKeysFromCertKey

func LoadKeysFromCertKey(certFolder, name string) ([]byte, []byte, []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