keysigner

package
v0.0.0-...-3ca5141 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: 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 KeySigner

type KeySigner struct {
	// contains filtered or unexported fields
}

A KeySigner is used to verify the integrity of SessionKeys at the system borders

func NewKeySigner

func NewKeySigner(key string) *KeySigner

NewKeySigner creates a new KeySigner with the given key

func (*KeySigner) Sign

func (ks *KeySigner) Sign(val string) (string, error)

Sign appends an HMAC to a value

func (*KeySigner) Verify

func (ks *KeySigner) Verify(pubVal string) (string, error)

Verify checks a value signed with Sign

Jump to

Keyboard shortcuts

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