For the latest news and information visit
The GNU Crypto project

gnu.crypto.key.dh
Class DiffieHellmanReceiver

java.lang.Object
  extended bygnu.crypto.key.BaseKeyAgreementParty
      extended bygnu.crypto.key.dh.DiffieHellmanKeyAgreement
          extended bygnu.crypto.key.dh.DiffieHellmanReceiver
All Implemented Interfaces:
IKeyAgreementParty

public class DiffieHellmanReceiver
extends DiffieHellmanKeyAgreement

This implementation is the receiver's part of the basic version of the Diffie-Hellman key agreement exchange (B in [HAC]).

Version:
$Revision: 1.2 $
See Also:
DiffieHellmanKeyAgreement

Field Summary
 
Fields inherited from class gnu.crypto.key.dh.DiffieHellmanKeyAgreement
KA_DIFFIE_HELLMAN_OWNER_PRIVATE_KEY, ownerKey, SOURCE_OF_RANDOMNESS, ZZ
 
Fields inherited from class gnu.crypto.key.BaseKeyAgreementParty
complete, initialised, name, rnd, step, TWO
 
Constructor Summary
DiffieHellmanReceiver()
           
 
Method Summary
protected  void engineInit(java.util.Map attributes)
           
protected  OutgoingMessage engineProcessMessage(IncomingMessage in)
           
 
Methods inherited from class gnu.crypto.key.dh.DiffieHellmanKeyAgreement
engineReset, engineSharedSecret
 
Methods inherited from class gnu.crypto.key.BaseKeyAgreementParty
getSharedSecret, init, isComplete, name, nextRandomBytes, processMessage, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffieHellmanReceiver

public DiffieHellmanReceiver()
Method Detail

engineInit

protected void engineInit(java.util.Map attributes)
                   throws KeyAgreementException
Specified by:
engineInit in class BaseKeyAgreementParty
Throws:
KeyAgreementException

engineProcessMessage

protected OutgoingMessage engineProcessMessage(IncomingMessage in)
                                        throws KeyAgreementException
Specified by:
engineProcessMessage in class BaseKeyAgreementParty
Throws:
KeyAgreementException

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.