Versions in this module Expand all Collapse all v1 v1.2.0 Aug 30, 2023 Changes in this version + func GetPrivateKeyFromCert(cert []byte, cs core.CryptoSuite) (core.Key, error) + func GetPublicKeyFromCert(cert []byte, cs core.CryptoSuite) (core.Key, error) + func X509KeyPair(certPEMBlock []byte, pk core.Key, cs core.CryptoSuite) (tls.Certificate, error) + type PrivateKey struct + func (priv *PrivateKey) Public() crypto.PublicKey + func (priv *PrivateKey) Sign(rand io.Reader, msg []byte, opts crypto.SignerOpts) ([]byte, error)