jose2go: Index | Files

package ecc

import ""

package ecc provides helpers for creating elliptic curve leys


Package Files


func NewPrivate Uses

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

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

func NewPublic Uses

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

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

func ReadPrivate Uses

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

ReadPrivate loads ecdsa.PrivateKey from given PKCS1 or PKCS8 blobs

func ReadPublic Uses

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

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

Package ecc imports 6 packages (graph) and is imported by 6 packages. Updated 2016-07-31. Refresh now. Tools for package owners.