Examples of Yarrow


Examples of freenet.crypt.Yarrow

      File seed = userDir.file("prng.seed");
      FileUtil.setOwnerRW(seed);
      entropyGatheringThread.start();
      // Can block.
      this.random = new Yarrow(seed);
      DiffieHellman.init(random);
      // http://bugs.sun.com/view_bug.do;jsessionid=ff625daf459fdffffffffcd54f1c775299e0?bug_id=4705093
      // This might block on /dev/random while doing new SecureRandom(). Once it's created, it won't block.
      ECDH.blockingInit();
    } else {
View Full Code Here

Examples of freenet.crypt.Yarrow

    }

    config.store();

    // TODO: find a smarter way of doing it not involving any casting
    Yarrow myRandom = (Yarrow) random;
    myRandom.write_seed(myRandom.seedfile, true);
  }
View Full Code Here

Examples of freenet.crypt.Yarrow

    // use dyndns hostnames
    java.security.Security.setProperty("networkaddress.cache.ttl", "0");
    java.security.Security.setProperty("networkaddress.cache.negative.ttl", "0");

    // Setup RNG
    RandomSource random = new Yarrow();

    DiffieHellman.init(random);

    if(enablePlug) {
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.