C# Class IPod.Hash58

Show file Open project: mono/ipod-sharp Class Usage Examples

Public Methods

Method Description
GenerateHash ( byte fwid, byte iTunesDB ) : byte[]
GenerateHash ( byte fwid, byte iTunesDB, int sizeOfHeaders ) : byte[]
GenerateHash ( string fwid, byte iTunesDB ) : byte[]
GenerateHash ( string fwid, byte iTunesDB, int sizeOfHeaders ) : byte[]

Private Methods

Method Description
Gcd ( int a, int b ) : int
GenerateKey ( byte fwid, byte key ) : void
Lcm ( int a, int b ) : int

Method Details

GenerateHash() public static method

public static GenerateHash ( byte fwid, byte iTunesDB ) : byte[]
fwid byte
iTunesDB byte
return byte[]

GenerateHash() public static method

public static GenerateHash ( byte fwid, byte iTunesDB, int sizeOfHeaders ) : byte[]
fwid byte
iTunesDB byte
sizeOfHeaders int
return byte[]

GenerateHash() public static method

public static GenerateHash ( string fwid, byte iTunesDB ) : byte[]
fwid string
iTunesDB byte
return byte[]

GenerateHash() public static method

public static GenerateHash ( string fwid, byte iTunesDB, int sizeOfHeaders ) : byte[]
fwid string
iTunesDB byte
sizeOfHeaders int
return byte[]