Versions in this module Expand all Collapse all v1 v1.0.0 Jul 11, 2017 Changes in this version + func AEStoEncryptedPEM(raw []byte, pwd []byte) ([]byte, error) + func AEStoPEM(raw []byte) []byte + func Clone(src []byte) []byte + func DERToPrivateKey(der []byte) (key interface{}, err error) + func DERToPublicKey(raw []byte) (pub interface{}, err error) + func DERToX509Certificate(asn1Data []byte) (*x509.Certificate, error) + func DirEmpty(path string) (bool, error) + func DirExists(path string) (bool, error) + func DirMissingOrEmpty(path string) (bool, error) + func ErrToString(err error) string + func PEMtoAES(raw []byte, pwd []byte) ([]byte, error) + func PEMtoPrivateKey(raw []byte, pwd []byte) (interface{}, error) + func PEMtoPublicKey(raw []byte, pwd []byte) (interface{}, error) + func PrivateKeyToDER(privateKey *ecdsa.PrivateKey) ([]byte, error) + func PrivateKeyToEncryptedPEM(privateKey interface{}, pwd []byte) ([]byte, error) + func PrivateKeyToPEM(privateKey interface{}, pwd []byte) ([]byte, error) + func PublicKeyToDER(publicKey interface{}) ([]byte, error) + func PublicKeyToEncryptedPEM(publicKey interface{}, pwd []byte) ([]byte, error) + func PublicKeyToPEM(publicKey interface{}, pwd []byte) ([]byte, error)