C# Класс SteamKit2.CryptoHelper

Provides Crypto functions used in Steam protocols
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AESDecrypt ( byte input, byte key, byte iv ) : byte[]

Decrypts an input byte array using AES/CBC/PKCS7 with a given key and IV

AESEncrypt ( byte input, byte key, byte iv ) : byte[]

Encrypts using AES/CBC/PKCS7 an input byte array with a given key and IV

AdlerHash ( byte input ) : byte[]

Performs an Adler32 on the given input

CRCHash ( byte input ) : byte[]

Performs CRC32 on an input byte array using the CrcStandard.Crc32Bit parameters

GenerateRandomBlock ( int size ) : byte[]

Generate an array of random bytes given the input length

JenkinsHash ( byte input ) : byte[]

Performs the Jenkins hash on an input byte array

SHAHash ( byte input ) : byte[]

Performs an SHA1 hash of an input byte array

SymmetricDecrypt ( byte input, byte key ) : byte[]

Decrypts using AES/CBC/PKCS7 with an input byte array and key, using the random IV prepended using AES/ECB/None

SymmetricEncrypt ( byte input, byte key ) : byte[]

Performs an encryption using AES/CBC/PKCS7 with an input byte array and key, with a random IV prepended using AES/ECB/None

Описание методов

AESDecrypt() публичный статический Метод

Decrypts an input byte array using AES/CBC/PKCS7 with a given key and IV
public static AESDecrypt ( byte input, byte key, byte iv ) : byte[]
input byte
key byte
iv byte
Результат byte[]

AESEncrypt() публичный статический Метод

Encrypts using AES/CBC/PKCS7 an input byte array with a given key and IV
public static AESEncrypt ( byte input, byte key, byte iv ) : byte[]
input byte
key byte
iv byte
Результат byte[]

AdlerHash() публичный статический Метод

Performs an Adler32 on the given input
public static AdlerHash ( byte input ) : byte[]
input byte
Результат byte[]

CRCHash() публичный статический Метод

Performs CRC32 on an input byte array using the CrcStandard.Crc32Bit parameters
public static CRCHash ( byte input ) : byte[]
input byte
Результат byte[]

GenerateRandomBlock() публичный статический Метод

Generate an array of random bytes given the input length
public static GenerateRandomBlock ( int size ) : byte[]
size int
Результат byte[]

JenkinsHash() публичный статический Метод

Performs the Jenkins hash on an input byte array
public static JenkinsHash ( byte input ) : byte[]
input byte
Результат byte[]

SHAHash() публичный статический Метод

Performs an SHA1 hash of an input byte array
public static SHAHash ( byte input ) : byte[]
input byte
Результат byte[]

SymmetricDecrypt() публичный статический Метод

Decrypts using AES/CBC/PKCS7 with an input byte array and key, using the random IV prepended using AES/ECB/None
public static SymmetricDecrypt ( byte input, byte key ) : byte[]
input byte
key byte
Результат byte[]

SymmetricEncrypt() публичный статический Метод

Performs an encryption using AES/CBC/PKCS7 with an input byte array and key, with a random IV prepended using AES/ECB/None
public static SymmetricEncrypt ( byte input, byte key ) : byte[]
input byte
key byte
Результат byte[]