ecc

package
v0.0.0-...-3d3ad9f Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

package ecc provides helpers for creating elliptic curve leys

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrivate

func NewPrivate(x, y, d []byte) *ecdsa.PrivateKey

NewPrivate constructs ecdsa.PrivateKey from given (X,Y) and D

func NewPublic

func NewPublic(x, y []byte) *ecdsa.PublicKey

NewPublic constructs ecdsa.PublicKey from given (X,Y)

func ReadPrivate

func ReadPrivate(raw []byte) (key *ecdsa.PrivateKey, err error)

ReadPrivate loads ecdsa.PrivateKey from given PKCS1 or PKCS8 blobs

func ReadPublic

func ReadPublic(raw []byte) (key *ecdsa.PublicKey, err error)

ReadPublic loads ecdsa.PublicKey from given PKCS1 X509 or PKIX blobs

Types

This section is empty.

Jump to

Keyboard shortcuts

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