Documentation ¶
Index ¶
- func GenerateKeyPair() (*ecdsa.PublicKey, *ecdsa.PrivateKey, error)
- func ParsePrivatKey(privPEM []byte) (*ecdsa.PrivateKey, error)
- func ParsePublicKey(pubPEM []byte) (*ecdsa.PublicKey, error)
- func SerializePrivateKey(privateKey *ecdsa.PrivateKey) ([]byte, error)
- func SerializePublicKey(publicKey *ecdsa.PublicKey) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
func GenerateKeyPair() (*ecdsa.PublicKey, *ecdsa.PrivateKey, error)
GenerateKeyPair generates an ECDSA public / private key pair
func ParsePrivatKey ¶
func ParsePrivatKey(privPEM []byte) (*ecdsa.PrivateKey, error)
ParsePrivateKey parses an private key serialized in PEM format
func ParsePublicKey ¶
ParsePublicKey parses an public key serialized in PEM format
func SerializePrivateKey ¶
func SerializePrivateKey(privateKey *ecdsa.PrivateKey) ([]byte, error)
SerializePrivateKeY serializes the private key in PEM format
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.