saltpackkeys

package
v5.5.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: BSD-3-Clause, BSD-3-Clause Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRecipientKeyfinderEngineHook

func NewRecipientKeyfinderEngineHook(getKBFSKeyfinderForTesting bool) func(arg libkb.SaltpackRecipientKeyfinderArg) libkb.SaltpackRecipientKeyfinderEngineInterface

func NewSaltpackRecipientKeyfinderEngineAsInterface

func NewSaltpackRecipientKeyfinderEngineAsInterface(arg libkb.SaltpackRecipientKeyfinderArg) libkb.SaltpackRecipientKeyfinderEngineInterface

SaltpackRecipientKeyfinderEngine creates a SaltpackRecipientKeyfinderEngine engine.

Types

type KeyPseudonymResolver

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

KeyPseudonymResolver resolves new (team based) Key Pseudonyms, but falls back to old Kbfs Pseudonyms when it cannot find any match. A mock implementation (which does not communicate with the sever and avoids circular dependencies) is available in the saltpackkeysmocks package.

func (*KeyPseudonymResolver) ResolveKeys

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

type SaltpackRecipientKeyfinderEngine

type SaltpackRecipientKeyfinderEngine struct {
	engine.SaltpackUserKeyfinder
	SymmetricEntityKeyMap map[keybase1.TeamID](keybase1.TeamApplicationKey)
	SaltpackSymmetricKeys []libkb.SaltpackReceiverSymmetricKey
}

SaltpackRecipientKeyfinderEngine is an engine to find Per User/Per Team Keys. Users can also be loaded by assertions, possibly tracking them if necessary.

SaltpackRecipientKeyfinderEngine extends the functionality of engine.SaltpackUserKeyfinder (which can only find user keys but not team keys). This is a separate object (and also not part of the engine package) to avoid circular dependencies (as teams depends on engine).

func (*SaltpackRecipientKeyfinderEngine) GetSymmetricKeys

func (*SaltpackRecipientKeyfinderEngine) Name

Name is the unique engine name.

func (*SaltpackRecipientKeyfinderEngine) Run

Jump to

Keyboard shortcuts

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