All Packages Class Hierarchy This Package Previous Next Index
Class is.logi.crypto.protocols.DHKeyExNoninter
java.lang.Object
|
+----is.logi.crypto.Crypto
|
+----is.logi.crypto.protocols.DHKeyEx
|
+----is.logi.crypto.protocols.DHKeyExNoninter
- public class DHKeyExNoninter
- extends DHKeyEx
- implements NoninterKeyExClient, NoninterKeyExServer
Diffie-Hellman key exchange without exchanging keys. Both parties
need to know the other party's public DHKey. No messages are
sent in either direction, but a unique session key is created for each
pair of Diffie-Hellman keys used.
This class is both the client and server for the protocol.
- Author:
- Logi Ragnarsson
(logir@hi.is)
- See Also:
- DHKeyExServer, DHKeyExClient, DHKey
-
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.
-
message(byte[])
- Expects and sends null, since no messages are needed for this protocol.
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.
message
public byte[] message(byte received[]) throws ProtocolException
- Expects and sends null, since no messages are needed for this protocol.
- Throws: ProtocolException
- if called with a parameter other than null.
All Packages Class Hierarchy This Package Previous Next Index