private static byte[] Transform(System.Security.Cryptography.ICryptoTransform transform, byte[] data) { System.IO.MemoryStream ms = new System.IO.MemoryStream(); System.Security.Cryptography.CryptoStream cs = new System.Security.Cryptography.CryptoStream(ms, transform, System.Security.Cryptography.CryptoStreamMode.Write); try { cs.Write(data, 0, data.Length); cs.Flush(); cs.FlushFinalBlock(); return(ms.ToArray()); } finally { } }
public override void Flush() { _cryptoStream.Flush(); }