service

package
v0.0.0-...-598f67f Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDfltItemService

func NewDfltItemService(keyService KeyService, itemRepo out.ItemRepo) *dfltItemService

func NewDfltKeyService

func NewDfltKeyService(cryptoUtils out.CrytpoUtils, profileRepo out.ProfileRepo) *dfltKeyService

func NewDfltVaultService

func NewDfltVaultService(itemRepo out.ItemRepo, profileRepo out.ProfileRepo) *dfltVaultService

Types

type ItemService

type ItemService interface {
	GetDetails(uid string, keys *domain.Keys) *domain.Item

	GetOverview(uid string, keys *domain.Keys) *domain.Item

	GetSimple(keys *domain.Keys) []*domain.SimpleItem
}

type KeyService

type KeyService interface {
	CheckHmac(msg, key, desiredHmac []byte) error

	DecodeData(key, initVector, data []byte) ([]byte, error)

	DecodeKeys(key, derivedKey, derivedMac []byte) ([]byte, []byte, error)

	DecodeOpdata(cipherText, key, macKey []byte) ([]byte, error)

	DerivedKeys(password string) ([]byte, []byte, error)

	ItemKeys(item *domain.RawItem, keys *domain.Keys) ([]byte, []byte)

	MasterKeys(derivedKey, derivedMac []byte) ([]byte, []byte, error)

	OverviewKeys(derivedKey, derivedMac []byte) ([]byte, []byte, error)
}

type VaultService

type VaultService interface {
	ValidateVault(vault *domain.Vault) error
}

Jump to

Keyboard shortcuts

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