package ecc
import "github.com/dvsekhvalnov/jose2go/keys/ecc"
package ecc provides helpers for creating elliptic curve leys
Index ¶
- func NewPrivate(x, y, d []byte) *ecdsa.PrivateKey
- func NewPublic(x, y []byte) *ecdsa.PublicKey
- func ReadPrivate(raw []byte) (key *ecdsa.PrivateKey, err error)
- func ReadPublic(raw []byte) (key *ecdsa.PublicKey, err error)
Functions ¶
func NewPrivate ¶
func NewPrivate(x, y, d []byte) *ecdsa.PrivateKey
NewPrivate constructs ecdsa.PrivateKey from given (X,Y) and D
func NewPublic ¶
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 ¶
ReadPublic loads ecdsa.PublicKey from given PKCS1 X509 or PKIX blobs
Source Files ¶
- Version
- v1.8.0 (latest)
- Published
- Nov 12, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 4 weeks ago –
Tools for package owners.