signing

package
v0.13.0-alpha.56 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct {
	PrivateKey *rsa.PrivateKey
}

func NewSigner

func NewSigner(privateKey *rsa.PrivateKey) *Signer

func (*Signer) Sign

func (e *Signer) Sign(data []byte) (code string, err error)

type Verifier

type Verifier struct {
	PublicKey *rsa.PublicKey
}

func NewVerifier

func NewVerifier(publicKey *rsa.PublicKey) *Verifier

func (*Verifier) Verify

func (d *Verifier) Verify(code string) ([]byte, error)

Jump to

Keyboard shortcuts

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