#!/bin/bash

#this program invokes the RSA java program

dir=/home/neo/gkk/networksecurity   # my working directory
cd $dir
echo " this program is for analysing diff time for RSA compution :"
echo "enterthe size of the key u want to test the program"
read key

echo "enterthe size of the data u want to test the program(enter 1/  2/  3/  4 )in kb"
read size

case $size in

   1 )  cp "test/test.1" "test/test"
	javac RSA.java
       java RSA $key;;


   2 )  cp "test/test.2" "test/test"
	javac RSA.java
       java RSA $key;;


   3 )  cp "test/test.3" "test/test"
	javac RSA.java
       java RSA $key;;


   4 )  cp "test/test.4" "test/test"
	javac RSA.java
       java RSA $key

   *) echo "INVALID SIZE";;

esac


cd -
