Package org.xulfactory.gliese.message

Examples of org.xulfactory.gliese.message.KexDHInitMessage


    BigInteger q = p.subtract(BigInteger.ONE).shiftRight(1);
    do {
      x = new BigInteger(q.bitLength(), rnd);
    } while (x.compareTo(q) >= 0);
    e = G.modPow(x, p);
    KexDHInitMessage init = new KexDHInitMessage();
    init.setE(e);
    transport.writeMessage(init);
    KexDHReplyMessage reply = (KexDHReplyMessage)transport
      .readMessage(NAMESPACE);

    BigInteger f = reply.getF();
View Full Code Here

TOP

Related Classes of org.xulfactory.gliese.message.KexDHInitMessage

Copyright © 2018 www.massapicom. 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.