privateKey

package
v0.0.0-...-5a40475 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RSA                   = "RSA PRIVATE KEY"
	ECDSA                 = "ECDSA PRIVATE KEY"
	Bits128               = 128
	Bits192               = 192
	Bits256               = 256
	AES128                = x509.PEMCipherAES128
	AES192                = x509.PEMCipherAES192
	AES256                = x509.PEMCipherAES256
	NoPassphrase          = ""
	NoEncryptionAlgorithm = 0
)

Variables

This section is empty.

Functions

func Generate

func Generate(keyType string, keySize int) (key []byte, err error)

func Read

func Read(path string, passphrase string) (key []byte, err error)

func Write

func Write(path string, key []byte, passphrase string, encryptionAlg x509.PEMCipher) (err error)

Types

type Info

type Info struct {
	Id   string
	Type string
	Size string
	Path string
}

Jump to

Keyboard shortcuts

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