Versions in this module Expand all Collapse all v1 v1.4.10 Dec 9, 2020 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 GetCurveHalfOrdersAt(c elliptic.Curve) *big.Int + func IsLowS(k *ecdsa.PublicKey, s *big.Int) (bool, error) + func MarshalECDSASignature(r, s *big.Int) ([]byte, error) + 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) + func SignatureToLowS(k *ecdsa.PublicKey, signature []byte) ([]byte, error) + func ToLowS(k *ecdsa.PublicKey, s *big.Int) (*big.Int, error) + func UnmarshalECDSASignature(raw []byte) (*big.Int, *big.Int, error) + type ECDSASignature struct + R *big.Int + S *big.Int