ecc

package
Version: v0.0.0-...-926964d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2016 License: MIT, Apache-2.0 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.

Source Files

Jump to

Keyboard shortcuts

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