signing

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEdDSAVerification = errors.New("eddsa: verification error")
)

Errors used by this package.

Functions

func JWKFromPublicKey

func JWKFromPublicKey(key crypto.PublicKey) (*jwk.Key, error)

JWKFromPublicKey creates a JWK from a public key

Types

type SigningMethodEdwardsCurve

type SigningMethodEdwardsCurve struct {
	Name string
}

SigningMethodEdwardsCurve implements the EdDSA family of signing methods.

var (
	SigningMethodEdDSA *SigningMethodEdwardsCurve
)

Specific instances for EdDSA

func (*SigningMethodEdwardsCurve) Alg

Alg implements the jwt.SigningMethod interface.

func (*SigningMethodEdwardsCurve) Sign

func (m *SigningMethodEdwardsCurve) Sign(signingString string, key interface{}) (string, error)

Sign implements the jwt.SigningMethod interface.

func (*SigningMethodEdwardsCurve) Verify

func (m *SigningMethodEdwardsCurve) Verify(signingString, signature string, key interface{}) error

Verify implements the jwt.SigningMethod interface.

Jump to

Keyboard shortcuts

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