jose2go: github.com/dvsekhvalnov/jose2go/keys/ecc Index | Files

package ecc

import "github.com/dvsekhvalnov/jose2go/keys/ecc"

package ecc provides helpers for creating elliptic curve leys

Index

Package Files

ecc.go

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.