public static final void main(String[] args) { try { IBlockCipher cipher = CipherFactory.getInstance(args[0]); int keySize = cipher.defaultKeySize() * 8; if (args.length > 1) { keySize = Integer.parseInt(args[1]); } long time = -System.currentTimeMillis(); set1(cipher, keySize); set2(cipher, keySize); set3(cipher, keySize); set4(cipher, keySize); time += System.currentTimeMillis(); System.out.println(); System.out.println("End of test vectors"); System.out.println(); System.out.println("*** Tests lasted " + time + " ms..."); } catch (Exception x) { x.printStackTrace(System.err); } }