key

package
v0.0.0-...-6c3c161 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func ParsePublicKey(pubPEM []byte) (*ecdsa.PublicKey, error)

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

func SerializePublicKey

func SerializePublicKey(publicKey *ecdsa.PublicKey) ([]byte, error)

SerializePublicKey serializes the public key in PEM format

Types

This section is empty.

Jump to

Keyboard shortcuts

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