ecc

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 11

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.

Jump to

Keyboard shortcuts

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