Package tools.elgamal

Examples of tools.elgamal.PrivateKey


  }

  @Override
  public Message respond() {
    // Extract shared key from the encrypted message;
    PrivateKey key = ChatterContext.get(getCk().getA(),
        PublicKeyRequest.PRIVATE_KEY);
    try {
      Cipher elgamal = new ElgamalCipher();
      elgamal.init(Cipher.DECRYPT_MODE, key);
      elgamal.update(encryptedKey);
View Full Code Here

TOP

Related Classes of tools.elgamal.PrivateKey

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.