Package net.i2p.util

Examples of net.i2p.util.NativeBigInteger.compareTo()


      do {
        BigInteger e = p.subtract(BigInteger.ONE).divide(q);
        NativeBigInteger h;
        do {
          h = new NativeBigInteger(hashLength, r);
        } while(h.compareTo(p.subtract(BigInteger.ONE)) >= 0);
        g = (NativeBigInteger) h.modPow(e, p);
      } while (g.equals(BigInteger.ONE));
      DSAGroup group = new DSAGroup(p, q, g);
      System.out.println("g: "+HexUtil.toHexString(g)+" ("+g.bitLength()+ ')');
      System.out.println("Group: "+group.verboseToString());
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.