All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.logi.crypto.protocols.DHEKEKeyExServer

java.lang.Object
   |
   +----is.logi.crypto.Crypto
           |
           +----is.logi.crypto.protocols.DHEKEKeyEx
                   |
                   +----is.logi.crypto.protocols.DHEKEKeyExServer

public class DHEKEKeyExServer
extends DHEKEKeyEx
implements InterKeyExServer
Diffie-Hellman EKE key exchange server. It expects to talk to a DHEKEKeyExClient object.

Author:
Logi Ragnarsson (logir@hi.is)
See Also:
DHEKEKeyExClient

Constructor Index

 o DHEKEKeyExServer(int, String, CipherKey)
Create a new DHEKEKeyExClient object which uses an n bit modulus, the named key type and the specified secret key.

Method Index

 o message(byte[])
If the key has not been decided upon and received is the last message received from the other end, message(received) returns the message to send the other end as the next step in the protocol.

Constructors

 o DHEKEKeyExServer
 public DHEKEKeyExServer(int n,
                         String keyType,
                         CipherKey secretKey)
Create a new DHEKEKeyExClient object which uses an n bit modulus, the named key type and the specified secret key.

There are pre-computed public modulus and gnerator pairs for these values of n: 256, 512, 1024, 2048. Using one of these values saves you from a rather long wait.

Methods

 o message
 public byte[] message(byte received[]) throws ProtocolException
If the key has not been decided upon and received is the last message received from the other end, message(received) returns the message to send the other end as the next step in the protocol.

Throws: ProtocolException
if a malformed message is received.
Throws: ValidationException
if balidation fails.

All Packages  Class Hierarchy  This Package  Previous  Next  Index