All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.hi.logir.cryptonite.DHKeyExNoninter

java.lang.Object
   |
   +----is.hi.logir.cryptonite.Cryptonite
           |
           +----is.hi.logir.cryptonite.DHKeyEx
                   |
                   +----is.hi.logir.cryptonite.DHKeyExNoninter

public class DHKeyExNoninter
extends DHKeyEx
implements NoninterKeyExClient, NoninterKeyExServer
Diffie-Hellman key exchange client without exchanging keys. Both parties need to know the other party's public DHKey. Nomessages are sent in either direction, but a unique session key is created for each pair of Diffie-Hellman keys used.

Author:
Logi Ragnarsson (logir@hi.is)
See Also:
DHKeyExServer, DHKeyExClient, DHKey

Constructor Index

 o DHKeyExNoninter(DHKey, DHKey, String)
Create a new DHKeyExClient object which uses the private DH key from pri and the public DH key from pri to generate a session key.

Method Index

 o message(byte[])
Never called, since no messages are needed for this 'protocol'.

Constructors

 o DHKeyExNoninter
 public DHKeyExNoninter(DHKey pri,
                        DHKey pub,
                        String keyType) throws KeyException, InvalidCDSException
Create a new DHKeyExClient object which uses the private DH key from pri and the public DH key from pri to generate a session key.

Throws: KeyException
if the public/private flag of either key is wrong.
Throws: InvalidCDSException
if the session key object can not be created.

Methods

 o message
 public byte[] message(byte received[]) throws ProtocolException
Never called, since no messages are needed for this 'protocol'.

Throws: ProtocolException
if called

All Packages  Class Hierarchy  This Package  Previous  Next  Index