key

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2026 License: BSD-2-Clause Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL