Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEdDSAVerification = errors.New("eddsa: verification error")
)
Errors used by this package.
Functions ¶
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 ¶
func (m *SigningMethodEdwardsCurve) Alg() string
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.
Click to show internal directories.
Click to hide internal directories.