Documentation ¶
Index ¶
- func NewKeyPseudonymResolver(m libkb.MetaContext) saltpack.SymmetricKeyResolver
- func NewRecipientKeyfinderEngineHook(getKBFSKeyfinderForTesting bool) ...
- func NewSaltpackRecipientKeyfinderEngineAsInterface(arg libkb.SaltpackRecipientKeyfinderArg) libkb.SaltpackRecipientKeyfinderEngineInterface
- type KeyPseudonymResolver
- type SaltpackRecipientKeyfinderEngine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeyPseudonymResolver ¶
func NewKeyPseudonymResolver(m libkb.MetaContext) saltpack.SymmetricKeyResolver
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 (e *SaltpackRecipientKeyfinderEngine) GetSymmetricKeys() []libkb.SaltpackReceiverSymmetricKey
func (*SaltpackRecipientKeyfinderEngine) Name ¶
func (e *SaltpackRecipientKeyfinderEngine) Name() string
Name is the unique engine name.
func (*SaltpackRecipientKeyfinderEngine) Run ¶
func (e *SaltpackRecipientKeyfinderEngine) Run(m libkb.MetaContext) (err error)