| 
Bouncy Castle Cryptography 1.33 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.agreement.DHAgreement
a Diffie-Hellman key exchange engine.
note: This uses MTI/A0 key agreement in order to make the key agreement secure against passive attacks. If you're doing Diffie-Hellman and both parties have long term public keys you should look at using this. For further information have a look at RFC 2631.
It's possible to extend this to more than two parties as well, for the moment that is left as an exercise for the reader.
| Constructor Summary | |
DHAgreement()
 | 
|
| Method Summary | |
 java.math.BigInteger | 
calculateAgreement(DHPublicKeyParameters pub,
                   java.math.BigInteger message)
given a message from a given party and the coresponding public key calculate the next message in the agreement sequence.  | 
 java.math.BigInteger | 
calculateMessage()
calculate our initial message.  | 
 void | 
init(CipherParameters param)
 | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public DHAgreement()
| Method Detail | 
public void init(CipherParameters param)
public java.math.BigInteger calculateMessage()
public java.math.BigInteger calculateAgreement(DHPublicKeyParameters pub,
                                               java.math.BigInteger message)
  | 
Bouncy Castle Cryptography 1.33 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||