All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----is.logi.crypto.Crypto | +----is.logi.crypto.test.TestCliSer
This makes use of the EncryptStream DecryptStream, EncryptOFB, DecryptOFB, TriDES, DHKeyExClient and DHKeyExServer classes.
10 client threads are created which each repeatedly connects to the main server thread. The main server thread spawns a sub-thread for each connection. Each client thread negotiates a TriDES session key with its corresponding server thread using the Diffie-Hellman protocol and uses this key in OFB mode to send a number to the server thread and receive the number squared. The result is then printed to the screen.
Since each EncryptOFB and DecryptOFB object launches a thread to pre-calculate an xor-stream, more than 60 threads are created to perform the calculations.
public static void main(String arg[])
All Packages Class Hierarchy This Package Previous Next Index