Versions in this module Expand all Collapse all v0 v0.0.1 Jan 14, 2022 Changes in this version + const ECPrivateKeyBlockType + const PrivateKeyBlockType + const PublicKeyBlockType + const RSAPrivateKeyBlockType + func LoadOrGenerateKeyFile(keyPath string) (data []byte, wasGenerated bool, err error) + func MakeEllipticPrivateKeyPEM() ([]byte, error) + func MarshalPrivateKeyToPEM(privateKey crypto.PrivateKey) ([]byte, error) + func ParsePrivateKeyPEM(keyData []byte) (interface{}, error) + func ParsePublicKeysPEM(keyData []byte) ([]interface{}, error) + func PrivateKeyFromFile(file string) (interface{}, error) + func PublicKeysFromFile(file string) ([]interface{}, error) + func WriteKey(keyPath string, data []byte) error