ecdsa

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asn1DerEncodedMethod

type Asn1DerEncodedMethod struct {
	Method
}

func (*Asn1DerEncodedMethod) Sign

func (m *Asn1DerEncodedMethod) Sign(message []byte) ([]byte, error)

func (*Asn1DerEncodedMethod) Verify

func (m *Asn1DerEncodedMethod) Verify(message []byte, signature []byte) error

type Method

type Method struct {
	PrivateKey *ecdsa.PrivateKey
	PublicKey  *ecdsa.PublicKey
	HashFunc   func() hash.Hash
	Name       string
	// contains filtered or unexported fields
}

func FromPem

func FromPem(pemKey string) (*Method, error)

func FromPrivateKey

func FromPrivateKey(privateKey *ecdsa.PrivateKey) (*Method, error)

func FromPublicKey

func FromPublicKey(publicKey *ecdsa.PublicKey) (*Method, error)

func New

func New(privateKey *ecdsa.PrivateKey, publicKey *ecdsa.PublicKey) (*Method, error)

func (*Method) GetName

func (m *Method) GetName() string

func (*Method) Sign

func (m *Method) Sign(message []byte) ([]byte, error)

func (*Method) Verify

func (m *Method) Verify(message []byte, signature []byte) error

Jump to

Keyboard shortcuts

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