Package tools.elgamal

Examples of tools.elgamal.KeyGenerator


  }

  public Message respond() {
    // Generate Key Pair and respond the public key, the private key is
    // stored in the context
    KeyGenerator keyGen = new KeyGenerator(bitLength);
    ChatterContext.put(getCk().getA(), PRIVATE_KEY, keyGen.getPrivateKey());
    return new PublicKeyResponse(getTo(), getFrom(), keyGen.getPublicKey());
  }
View Full Code Here

TOP

Related Classes of tools.elgamal.KeyGenerator

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.