signature

package
v0.0.0-...-31dc5ed Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignatureTTL = 30
)

Variables

This section is empty.

Functions

func ReadPrivateKeyFile

func ReadPrivateKeyFile(path string) (*rsa.PrivateKey, error)

Types

type Signature

type Signature struct {
	Time int64
	Sign []byte
}

func New

func New(key *rsa.PrivateKey) *Signature

func (Signature) Verify

func (sign Signature) Verify(key *rsa.PublicKey) error

type Signer

type Signer struct {
	Name string
}

func (Signer) String

func (signer Signer) String() string

Jump to

Keyboard shortcuts

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