Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportECPrivateKey ¶
func ExportECPrivateKey(privateKey *ecdsa.PrivateKey) ([]byte, error)
ExportECPrivateKey converts private key to []byte.
func ExportECPublicKey ¶
ExportECPublicKey converts public key to []byte.
func ParseECPrivateKeyFromPEM ¶
func ParseECPrivateKeyFromPEM(key []byte) (*ecdsa.PrivateKey, error)
ParseECPrivateKeyFromPEM Parse PEM encoded Elliptic Curve Private Key Structure.
Types ¶
type KeyPair ¶
type KeyPair struct { Private *ecdsa.PrivateKey Public *ecdsa.PublicKey }
KeyPair is RSA key pair.
func GenerateKeyPair ¶
GenerateKeyPair returns private & public keys.
Click to show internal directories.
Click to hide internal directories.