C# Class GameRevision.GW2Emu.Common.Cryptography.CryptoUtils

Mostrar archivo Open project: puppt/GW2Emu

Public Methods

Method Description
GetRandomBytes ( ) : byte[]
Hash ( byte buffer ) : byte[]
ToBytes ( uint uints ) : byte[]
ToUints ( byte bytes ) : uint[]
XOR ( byte value, byte key ) : byte[]

Private Methods

Method Description
ROL ( uint value, uint x ) : uint

Method Details

GetRandomBytes() public static method

public static GetRandomBytes ( ) : byte[]
return byte[]

Hash() public static method

public static Hash ( byte buffer ) : byte[]
buffer byte
return byte[]

ToBytes() public static method

public static ToBytes ( uint uints ) : byte[]
uints uint
return byte[]

ToUints() public static method

public static ToUints ( byte bytes ) : uint[]
bytes byte
return uint[]

XOR() public static method

public static XOR ( byte value, byte key ) : byte[]
value byte
key byte
return byte[]