Documentation ¶ Index ¶ Variables func F(password, salt []byte, iterations, blockNum int, hashFunc func() hash.Hash) []byte func IGEDecrypt(key, iv, data []byte) []byte func PBKDF2(password, salt []byte, iterations, keyLen int) []byte type MtpData type TDF type TData func NewTData(path string) *TData 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 Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.