#!/bin/bash
echo Testing Key Generation Timings
echo "------------------------------"
echo -n "128 bits, 20 trials"
time java RSA 128 20 > /dev/null
echo
echo -n "256 bits, 20 trials" 
time java RSA 256 20 > /dev/null
echo
echo -n "512 bits, 20 trials"
time java RSA 512 20 > /dev/null
echo
echo -n "768 bits, 20 trials"
time java RSA 768 20 > /dev/null
echo
echo -n "1024 bits, 20 trials"
time java RSA 1024 20 > /dev/null

echo "Testing Encryption-Decryption"
echo "-----------------------------"
echo -n "128 bits"
java RSAED 128
echo
echo -n "1024 bits"
java RSAED 1024

