Decrypt() public static method

Decrypts an array in-place.
The array given in data will be modified.
Thrown if is .
public static Decrypt ( byte data ) : void
data byte The array to decrypt.
return void
Esempio n. 1
0
 /// <summary>
 /// Decrypts the given packet in-place.
 /// </summary>
 /// <remarks>
 /// The array will be modified directly.
 /// </remarks>
 /// <param name="packet">The data to decrypt.</param>
 public void Decrypt(byte[] packet)
 {
     lock (_decryptor)
     {
         _decryptor.Transform(packet);
         CustomCrypto.Decrypt(packet);
     }
 }