Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SigningMethodEd25519 ¶
type SigningMethodEd25519 struct {
Name string
}
Implements the Ed25519 signing method. Expects *crypto.Ed25519PublicKey for signing and *crypto.Ed25519PublicKey for validation.
var SigningMethodEd25519i *SigningMethodEd25519
Specific instance for Ed25519.
func (*SigningMethodEd25519) Alg ¶
func (m *SigningMethodEd25519) Alg() string
Alg returns the name of this signing method.
func (*SigningMethodEd25519) Sign ¶
func (m *SigningMethodEd25519) Sign(signingString string, key interface{}) (string, error)
Implements the Sign method from SigningMethod. For this signing method, must be a *crypto.Ed25519PublicKey structure.
func (*SigningMethodEd25519) Verify ¶
func (m *SigningMethodEd25519) Verify(signingString, signature string, key interface{}) error
Implements the Verify method from SigningMethod. For this signing method, must be a *crypto.Ed25519PublicKey structure.
Click to show internal directories.
Click to hide internal directories.