Examples of TorRandom


Examples of com.subgraph.orchid.crypto.TorRandom

 
  DirectoryDownloadTask(TorConfig config, Directory directory, DirectoryDownloader downloader) {
    this.config = config;
    this.directory = directory;
    this.downloader = downloader;
    this.random = new TorRandom();
    this.outstandingDescriptorTasks = new AtomicInteger();
    this.descriptorProcessor = new DescriptorProcessor(config, directory);
  }
View Full Code Here

Examples of com.subgraph.orchid.crypto.TorRandom

    }
    this.pendingExitStreams = new PendingExitStreams(config);
    this.circuitCreationTask = new CircuitCreationTask(config, directory, connectionCache, pathChooser, this, initializationTracker);
    this.activeCircuits = new HashSet<CircuitImpl>();
    this.cleanInternalCircuits = new LinkedList<InternalCircuit>();
    this.random = new TorRandom();
   
    this.initializationTracker = initializationTracker;
    this.hiddenServiceManager = new HiddenServiceManager(config, directory, this);
   
    directoryDownloader.setCircuitManager(this);
View Full Code Here

Examples of com.subgraph.orchid.crypto.TorRandom

  List<IntroductionPoint> getShuffledIntroductionPoints() {
    return shuffle(getIntroductionPoints());
  }
 
  private List<IntroductionPoint> shuffle(List<IntroductionPoint> list) {
    final TorRandom r = new TorRandom();
    final int sz = list.size();
    for(int i = 0; i < sz; i++) {
      swap(list, i, r.nextInt(sz));
    }
    return list;
  }
View Full Code Here

Examples of com.subgraph.orchid.crypto.TorRandom

    routersByIdentity = new HashMap<HexDigest, RouterImpl>();
    routersByNickname = new HashMap<String, RouterImpl>();
    directoryCaches = new RandomSet<RouterImpl>();
    requiredCertificates = new HashSet<ConsensusDocument.RequiredCertificate>();
    consensusChangedManager = new EventManager();
    random = new TorRandom();
  }
View Full Code Here

Examples of com.subgraph.orchid.crypto.TorRandom

    this.isDirectoryConnection = isDirectoryConnection;
    initializeCurrentCircuitId();
  }
 
  private void initializeCurrentCircuitId() {
    final TorRandom random = new TorRandom();
    currentId = random.nextInt(0xFFFF) + 1;
  }
View Full Code Here

Examples of com.subgraph.orchid.crypto.TorRandom

  CircuitStatus() {
    initializeCurrentStreamId();
  }

  private void initializeCurrentStreamId() {
    final TorRandom random = new TorRandom();
    currentStreamId = random.nextInt(0xFFFF) + 1;
  }
View Full Code Here

Examples of com.subgraph.orchid.crypto.TorRandom

 
  Bridges(TorConfig config, DirectoryDownloader directoryDownloader) {
    this.config = config;
    this.directoryDownloader = directoryDownloader;
    this.bridgeRouters = new HashSet<BridgeRouterImpl>();
    this.random = new TorRandom();
    this.lock = new Object();
    this.outstandingDownloadTasks = new AtomicInteger();
  }
View Full Code Here

Examples of com.subgraph.orchid.crypto.TorRandom

  private final Object lock;
  private final Executor executor;
 
  public EntryGuards(TorConfig config, ConnectionCache connectionCache, DirectoryDownloader directoryDownloader, Directory directory) {
    this.config = config;
    this.random = new TorRandom();
    this.nodeChooser = new CircuitNodeChooser(config, directory);
    this.connectionCache = connectionCache;
    this.directory = directory;
    this.pendingProbes = new HashSet<GuardEntry>();
    this.bridges = new Bridges(config, directoryDownloader);
View Full Code Here

Examples of com.subgraph.orchid.crypto.TorRandom

  private List<Router> hsDirectories;
 
  HSDirectories(Directory directory) {
    this.directory = directory;
    this.hsDirectories = new ArrayList<Router>();
    this.random = new TorRandom();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.