C# Class Telegram.Utils.Helpers

Afficher le fichier Open project: naphaso/kilogram

Méthodes publiques

Méthode 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 méthode

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

CalcMsgKey() public static méthode

public static CalcMsgKey ( byte data ) : byte[]
data byte
Résultat byte[]

CalcMsgKey() public static méthode

public static CalcMsgKey ( byte data, int offset, int limit ) : byte[]
data byte
offset int
limit int
Résultat byte[]

FileLocationGetVideoThumbLocation() public static méthode

public static FileLocationGetVideoThumbLocation ( VideoConstructor video ) : FileLocation
video VideoConstructor
Résultat FileLocation

GenerateRandomBytes() public static méthode

public static GenerateRandomBytes ( int num ) : byte[]
num int
Résultat byte[]

GenerateRandomLong() public static méthode

public static GenerateRandomLong ( ) : long
Résultat long

GenerateRandomUlong() public static méthode

public static GenerateRandomUlong ( ) : ulong
Résultat ulong

GetBitmapImageInternal() public static méthode

public static GetBitmapImageInternal ( string avatarPath ) : BitmapImage
avatarPath string
Résultat System.Windows.Media.Imaging.BitmapImage

GetPreviewFileLocation() public static méthode

public static GetPreviewFileLocation ( PhotoConstructor photo ) : FileLocation
photo PhotoConstructor
Résultat FileLocation

sha1() public static méthode

public static sha1 ( byte data ) : byte[]
data byte
Résultat byte[]

sha1() public static méthode

public static sha1 ( byte data, int offset, int limit ) : byte[]
data byte
offset int
limit int
Résultat byte[]