C# Class Telegram.Utils.Helpers

Mostrar archivo Open project: naphaso/kilogram

Public Methods

Method Description
CalcKey ( byte sharedKey, byte msgKey, bool client ) : AESKeyData
CalcMsgKey ( byte data ) : byte[]
CalcMsgKey ( byte data, int offset, int limit ) : byte[]
FileLocationGetVideoThumbLocation ( VideoConstructor video ) : FileLocation
GenerateRandomBytes ( int num ) : byte[]
GenerateRandomLong ( ) : long
GenerateRandomUlong ( ) : ulong
GetBitmapImageInternal ( string avatarPath ) : BitmapImage
GetPreviewFileLocation ( PhotoConstructor photo ) : FileLocation
sha1 ( byte data ) : byte[]
sha1 ( byte data, int offset, int limit ) : byte[]

Method Details

CalcKey() public static method

public static CalcKey ( byte sharedKey, byte msgKey, bool client ) : AESKeyData
sharedKey byte
msgKey byte
client bool
return Telegram.MTProto.Crypto.AESKeyData

CalcMsgKey() public static method

public static CalcMsgKey ( byte data ) : byte[]
data byte
return byte[]

CalcMsgKey() public static method

public static CalcMsgKey ( byte data, int offset, int limit ) : byte[]
data byte
offset int
limit int
return byte[]

FileLocationGetVideoThumbLocation() public static method

public static FileLocationGetVideoThumbLocation ( VideoConstructor video ) : FileLocation
video VideoConstructor
return FileLocation

GenerateRandomBytes() public static method

public static GenerateRandomBytes ( int num ) : byte[]
num int
return byte[]

GenerateRandomLong() public static method

public static GenerateRandomLong ( ) : long
return long

GenerateRandomUlong() public static method

public static GenerateRandomUlong ( ) : ulong
return ulong

GetBitmapImageInternal() public static method

public static GetBitmapImageInternal ( string avatarPath ) : BitmapImage
avatarPath string
return System.Windows.Media.Imaging.BitmapImage

GetPreviewFileLocation() public static method

public static GetPreviewFileLocation ( PhotoConstructor photo ) : FileLocation
photo PhotoConstructor
return FileLocation

sha1() public static method

public static sha1 ( byte data ) : byte[]
data byte
return byte[]

sha1() public static method

public static sha1 ( byte data, int offset, int limit ) : byte[]
data byte
offset int
limit int
return byte[]