dececkeys

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: MIT Imports: 6 Imported by: 0

README

dececkeys

unmarshalling of EC public and private keys from X.509 and PKCS #8 format respectively

Documentation

Overview

This package provides functions to convert ECDSA encoded private and public keys to the cooked versions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PKCS8Key

func PKCS8Key(encoded []byte) (*ecdsa.PrivateKey, error)

PKCS8Key decodes an ECDSA private key in PKCS #8 format to an ecdsa.PrivateKey.

func X509Key

func X509Key(encoded []byte) (*ecdsa.PublicKey, error)

X509Key decodes an X.509 encoded subject public key to an 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