keysconv

package
v0.0.0-...-2e0ef96 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAndSaveKeyPair

func GenAndSaveKeyPair(keyPath string, pubKeyPath string, bits int, password string) error

func KeyInPEMToRSA

func KeyInPEMToRSA(pemKey []byte, password string) (*rsa.PrivateKey, error)

func KeyInRSAToPEM

func KeyInRSAToPEM(key *rsa.PrivateKey, password string) ([]byte, error)

func KeyIsEncrypted

func KeyIsEncrypted(keyPath string) (bool, error)

func LoadKeyFromFile

func LoadKeyFromFile(keyPath string, password string) (*rsa.PrivateKey, error)

func LoadPubKeyFromFile

func LoadPubKeyFromFile(pubKeyPath string) (*rsa.PublicKey, error)

func PEMIsEncrypted

func PEMIsEncrypted(data []byte) (bool, error)

func PubKeyInPEMToRSA

func PubKeyInPEMToRSA(pemPubKey []byte) (*rsa.PublicKey, error)

func PubKeyInRSAToPEM

func PubKeyInRSAToPEM(pubKey *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