/* OVOAP Trusted Authentication Server - Multithreaded version */ import java.io.*; import java.net.*; public class ovoapMT { static final int BSIZE = 512; static final int NSIZE = 64; static final short TASPORT = 21004; static void genkey(byte[] Key) // generates random key { for(int i=Key.length-1;i>=0;i--) Key[i] = (byte)((int)(Math.random()*256)); } // read until buffer is full: static void readFully(DataInputStream din, byte[] buf) throws Exception { int len = buf.length; int br; // byte read; int total = 0; while (total