keys

package
v0.0.0-...-625ab12 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PemDecodePublicKey

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

PemDecodePublicKey decodes a Pem formatted string into a ecdsa.PublicKey

func PemEncodePublicKey

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

PemEncodePublicKey encodes ecdsa.PublicKey into Pem format

func ReadPublicKey

func ReadPublicKey(hexKey string) (*ecdsa.PublicKey, error)

ReadPublicKey reads a public key from a hex string (A P-256 FIPS 186.3 with ANSI X9.62 encoding (ecdsa public key of a 256 bits curve)).

Types

This section is empty.

Jump to

Keyboard shortcuts

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