Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePrivateKey ¶
func DecodePrivateKey(s string) (*ecdsa.PrivateKey, error)
DecodePrivateKey decodes a base64-encoded PKCS#8 DER private key string into an *ecdsa.PrivateKey.
func EncodePrivateKey ¶
func EncodePrivateKey(priv *ecdsa.PrivateKey) (string, error)
EncodePrivateKey encodes an ECDSA private key into a single-line, base64-encoded PKCS#8 DER string.
func GeneratePrivateKey ¶
func GeneratePrivateKey() (*ecdsa.PrivateKey, error)
GeneratePrivateKey creates a new P-256 ECDSA private key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.