saltpackkeystest

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockPseudonymResolver

func NewMockPseudonymResolver(t *testing.T) saltpack.SymmetricKeyResolver

Types

type MockPseudonymResolver

type MockPseudonymResolver struct {
	T *testing.T
	// contains filtered or unexported fields
}

MockPseudonymResolver resolver returns nil for all the pseudonyms requested unless otherwise instructed by the AddPseudonym method. It does not make any network requests to the server.

func (*MockPseudonymResolver) AddPseudonym

func (r *MockPseudonymResolver) AddPseudonym(pnym [32]byte, key *saltpack.SymmetricKey)

func (*MockPseudonymResolver) ResolveKeys

func (r *MockPseudonymResolver) ResolveKeys(identifiers [][]byte) ([]*saltpack.SymmetricKey, error)

Jump to

Keyboard shortcuts

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