package ecc

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

package ecc provides helpers for creating elliptic curve leys

Index

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

Source Files

ecc.go

Version
v1.5.0
Published
Oct 1, 2020
Platform
js/wasm
Imports
6 packages
Last checked
1 day ago

Tools for package owners.