Documentation
¶
Index ¶
Constants ¶
View Source
const (
Magic string = "ANDROID BACKUP"
)
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
Decompress decompresses payload r of an Android backup consulting abheader.
Types ¶
type AndroidBackupHeader ¶
type AndroidBackupHeader struct {
Version int
Compressed bool
UserSalt []byte
ChecksumSalt []byte
Rounds int
UserIV []byte
MasterKeyBlob []byte
}
AndroidBackupHeader represents Android backup header.
func ReadHeader ¶
ReadHeader reads Android backup header from reader r. Note that ReadHeader returns a reader with remaining data to be used to get backup payload. Original reader will be advanced by ReadHeader.
type MasterKey ¶
MasterKey represents master key and its parameters.
func DeriveMasterKey ¶
func DeriveMasterKey(ab *AndroidBackupHeader, passphrase string) (*MasterKey, error)
DeriveMasterKey derives master key data from backup header and passphrase.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.