Ejemplo n.º 1
0
 /// <summary>
 /// Decrypts some data with the RC4 decryptor used in handshaking
 /// </summary>
 /// <param name="data">Buffer with the data to decrypt</param>
 /// <param name="offset">Offset to begin decryption</param>
 /// <param name="length">Number of bytes to decrypt</param>
 protected void DoDecrypt(byte[] data, int offset, int length)
 {
     decryptor.Decrypt(data, offset, data, offset, length);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Decrypts some data with the RC4 encryptor used in handshaking
 /// </summary>
 /// <param name="data">Buffers with the data to decrypt</param>
 /// <returns>Buffer with decrypted data</returns>
 protected byte[] DoDecrypt(byte[] data)
 {
     byte[] d = (byte[])data.Clone();
     decryptor.Decrypt(d);
     return(d);
 }