Save This Page
Home » crypto-143 » org.bouncycastle.crypto.agreement » [javadoc | source]
org.bouncycastle.crypto.agreement
public class: DHBasicAgreement [javadoc | source]
java.lang.Object
   org.bouncycastle.crypto.agreement.DHBasicAgreement

All Implemented Interfaces:
    BasicAgreement

a Diffie-Hellman key agreement class.

note: This is only the basic algorithm, it doesn't take advantage of long term public keys if they are available. See the DHAgreement class for a "better" implementation.
Method from org.bouncycastle.crypto.agreement.DHBasicAgreement Summary:
calculateAgreement,   init
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.bouncycastle.crypto.agreement.DHBasicAgreement Detail:
 public BigInteger calculateAgreement(CipherParameters pubKey) 
    given a short term public key from a given party calculate the next message in the agreement sequence.
 public  void init(CipherParameters param)