Documentation ¶
Index ¶
- func PEMtoPrivateKey(raw []byte, pwd []byte) (interface{}, error)
- func ParseCertificate(asn1Data []byte) (*x509.Certificate, error)
- func PrivateKeyToDER(privateKey *ecdsa.PrivateKey) ([]byte, error)
- func Verify(cert *x509.Certificate, opts x509.VerifyOptions) (chains [][]*x509.Certificate, err error)
- func WrapHashResult(bsp bccsp.BCCSP, msg []byte, digest []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PEMtoPrivateKey ¶
PEMtoPrivateKey unmarshals a pem to private key
func ParseCertificate ¶
func ParseCertificate(asn1Data []byte) (*x509.Certificate, error)
func PrivateKeyToDER ¶
func PrivateKeyToDER(privateKey *ecdsa.PrivateKey) ([]byte, error)
func Verify ¶
func Verify(cert *x509.Certificate, opts x509.VerifyOptions) (chains [][]*x509.Certificate, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.