ecdsa

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

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

Verifier verifies elliptic curve signatures.

func NewES256

func NewES256() *Verifier

NewES256 creates a new signature verifier that verifies a ECDSA P-256 signature taking public key bytes and JSON Web Key as input.

func NewES384

func NewES384() *Verifier

NewES384 creates a new signature verifier that verifies a ECDSA P-384 signature taking public key bytes and JSON Web Key as input.

func NewES521

func NewES521() *Verifier

NewES521 creates a new signature verifier that verifies a ECDSA P-521 signature taking public key bytes and JSON Web Key as input.

func NewSecp256k1

func NewSecp256k1() *Verifier

NewSecp256k1 creates a new signature verifier that verifies a ECDSA secp256k1 signature taking public key bytes and JSON Web Key as input.

func (*Verifier) SupportedKeyType

func (sv *Verifier) SupportedKeyType(keyType kms.KeyType) bool

SupportedKeyType checks if verifier supports given key.

func (*Verifier) Verify

func (sv *Verifier) Verify(signature, msg []byte, pubKey *pubkey.PublicKey) error

Verify verifies the signature.

Jump to

Keyboard shortcuts

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