private MemoryStream InternalEncrypt(Stream inputStream) { MemoryStream memoryStream = new MemoryStream(); using (CryptoStream stream = new BaseStreamNonDisposingCryptoStream(memoryStream, this.GetCryptoTransform(Mode.Encrypt), CryptoStreamMode.Write)) { inputStream.CopyStream(stream); } return(memoryStream); }
private MemoryStream InternalEncrypt(Stream inputStream) { MemoryStream memoryStream = new MemoryStream(); using (CryptoStream stream = new BaseStreamNonDisposingCryptoStream(memoryStream, this.GetCryptoTransform(Mode.Encrypt), CryptoStreamMode.Write)) { inputStream.CopyStream(stream); } return memoryStream; }