예제 #1
0
 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
     {
     }
 }
예제 #2
0
 public override void Flush()
 {
     _cryptoStream.Flush();
 }