examples

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MAGIC = "TDF$"

Functions

func F

func F(password, salt []byte, iterations, blockNum int, hashFunc func() hash.Hash) []byte

func IGEDecrypt

func IGEDecrypt(key, iv, data []byte) []byte

func PBKDF2

func PBKDF2(password, salt []byte, iterations, keyLen int) []byte

Types

type MtpData

type MtpData struct {
	UserID uint64
	User32 int32
	MainDC int32
	Keys   []struct {
		DC      int32
		AuthKey [256]byte
	}
}

type TDF

type TDF struct {
	Version       uint32
	EncryptedData []byte
	Hashsum       []byte
}

type TData

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

func NewTData

func NewTData(path string) *TData

Jump to

Keyboard shortcuts

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