ecdsa

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Module = `ecdsa`
)

Variables

View Source
var (
	DefaultOpts = map[string]string{`curve`: `P256`, `signatureAlgorithm`: `SHA256`, `hash`: `SHA2-256`}
)

Functions

This section is empty.

Types

type Opts added in v0.10.0

type Opts struct {
	Curve              string
	SignatureAlgorithm string
	Hash               string
}

type Suite added in v0.10.0

type Suite struct {
	// contains filtered or unexported fields
}

func New added in v0.10.0

func New(opts map[string]string) (*Suite, error)

func (*Suite) GetSignatureAlgorithm added in v0.10.0

func (c *Suite) GetSignatureAlgorithm() x509.SignatureAlgorithm

func (*Suite) Hash added in v0.10.0

func (c *Suite) Hash(data []byte) []byte

func (*Suite) NewPrivateKey added in v0.10.0

func (c *Suite) NewPrivateKey() (interface{}, error)

func (*Suite) Sign added in v0.10.0

func (c *Suite) Sign(msg []byte, key interface{}) ([]byte, error)

func (*Suite) Verify added in v0.10.0

func (c *Suite) Verify(publicKey interface{}, msg, sig []byte) error

Jump to

Keyboard shortcuts

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