All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----is.logi.crypto.Crypto | +----is.logi.crypto.protocols.DHEKEKeyEx | +----is.logi.crypto.protocols.DHEKEKeyExServer
n
bit
modulus, the named key type and the specified secret key.
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.
public DHEKEKeyExServer(int n, String keyType, CipherKey secretKey)
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.
public byte[] message(byte received[]) throws ProtocolException
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.
All Packages Class Hierarchy This Package Previous Next Index