encrypted

package
v0.0.0-...-a2c3042 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECache

type ECache struct {
	Encrypted []byte
}

func ReadECache

func ReadECache(rawtdf tdata.RawTDF) (ECache, error)

func (ECache) Decrypt

func (t ECache) Decrypt(localkey []byte) ([]byte, error)

type EMap

type EMap struct {
	Salt         []byte
	KeyEncrypted []byte
	MapEncrypted []byte
}

EMap reflects the streams contained in the tdata/D877F783D5D3EF8C/map0 file.

func ReadEMap

func ReadEMap(rawtdf tdata.RawTDF) (EMap, error)

ReadEMap opens the map file

func (EMap) Decrypt

func (t EMap) Decrypt(password string) ([]byte, error)

func (EMap) GetKey

func (t EMap) GetKey(password string) ([]byte, error)

GetKey extracts the global key from a map file. That key will be used later to decrypt other files.

type ESettings

type ESettings struct {
	Salt      []byte
	Encrypted []byte
}

ESettings reflects the streams contained in the tdata/settings0 file.

func ReadESettings

func ReadESettings(tfile tdata.RawTDF) (ESettings, error)

ReadESettings opens the tdata/settings0 or tdata/settings1

func (ESettings) Decrypt

func (t ESettings) Decrypt(settingsKey []byte) ([]byte, error)

Decrypt returns the decrypted settings

func (ESettings) GetKey

func (t ESettings) GetKey(password string) []byte

GetKey returns the settings key

func (ESettings) Print

func (t ESettings) Print()

Print streams description

Jump to

Keyboard shortcuts

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