keys

package
v0.0.0-...-f02fc73 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PemDecodePrivateKey

func PemDecodePrivateKey(pvKey string) (*ecdsa.PrivateKey, error)

PemDecodePrivateKey transforms a pem encoded string into a *ecdsa.PrivateKey

func PemDecodePublicKey

func PemDecodePublicKey(pubKey string) (*ecdsa.PublicKey, error)

PemDecodePublicKey transforms a pem encoded string into a *ecdsa.PublicKey

func PemEncodePrivateKey

func PemEncodePrivateKey(pvKey *ecdsa.PrivateKey) (string, error)

PemEncodePrivateKey transforms a *ecdsa.PrivateKey into a pem encoded string

func PemEncodePublicKey

func PemEncodePublicKey(pubKey *ecdsa.PublicKey) (string, error)

PemEncodePublicKey transforms a *ecdsa.PublicKey into a pem encoded string

func ReadPrivateKeyFromFile

func ReadPrivateKeyFromFile(path string) (*ecdsa.PrivateKey, error)

ReadPrivateKeyFromFile reads a file containing a pem encoded key into a *ecdsa.PrivateKey

func ReadPublicKeyFromFile

func ReadPublicKeyFromFile(path string) (*ecdsa.PublicKey, error)

ReadPublicKeyFromFile reads a file containing a pem encoded key into a *ecdsa.PublicKey

func ReadRemotePublicKey

func ReadRemotePublicKey(url string) (*ecdsa.PublicKey, error)

ReadRemotePublicKey reads a pem encoded key from an url into a *ecdsa.PublicKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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