All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----is.hi.logir.cryptonite.Cryptonite | +----is.hi.logir.cryptonite.DHKeyEx | +----is.hi.logir.cryptonite.DHKeyExServer
pri
.
n
bit modulus and the named key type.
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 DHKeyExServer(DHKey pri, String keyType) throws KeyException
pri
.
public DHKeyExServer(int n, String keyType)
n
bit modulus and the named key type.
There are pre-computed public modulus and gnerator pairs for
these values of n
: 256, 512, 1024. 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