msg_signer

package
v0.0.0-...-b3895e6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: MIT, MIT Imports: 6 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 {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(h hash.Hash) *Signer

func (*Signer) Sign

func (s *Signer) Sign(msg []byte) []byte

func (*Signer) Verify

func (s *Signer) Verify(b []byte) ([]byte, bool)

type TimeSigner

type TimeSigner struct {
	*Signer
}

func NewTimeSigner

func NewTimeSigner(h hash.Hash) *TimeSigner

func (*TimeSigner) PagedVerify

func (s *TimeSigner) PagedVerify(r io.Reader, dur time.Duration) ([]byte, bool)

func (*TimeSigner) Sign

func (s *TimeSigner) Sign(msg []byte) []byte

func (*TimeSigner) Verify

func (s *TimeSigner) Verify(b []byte, dur time.Duration) ([]byte, bool)

Jump to

Keyboard shortcuts

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