All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.logi.crypto.test.TestCliSer

java.lang.Object
   |
   +----is.logi.crypto.Crypto
           |
           +----is.logi.crypto.test.TestCliSer

public class TestCliSer
extends Crypto
This application tests multiple client threads connecting to a server thread, using DH key-exchange and OFB mode.

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.

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

Method Index

 o main(String[])

Methods

 o main
 public static void main(String arg[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index