Package net.i2p.util

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


    return fs;
  }

  public static DSAPrivateKey create(SimpleFieldSet fs, DSAGroup group) throws IllegalBase64Exception {
    NativeBigInteger y = new NativeBigInteger(1, Base64.decode(fs.get("x")));
    if(y.bitLength() > 512)
      throw new IllegalBase64Exception("Probably a pubkey");
    return new DSAPrivateKey(y, group);
  }

//    public static void main(String[] args) throws Exception {
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.