Mandar Deodhar Roll no 03329014 Timing parameters for signing and verifying. ******************************************************************************** GENERAL TREND OBSERVED : Though the values obtained are quite random in nature, in general, RSA takes more time than DSA in generation. In verification, RSA is taking less time compared to DSA. (not drawing graph because I don't have time, sorry for this time.) REASON : Private key is used for signing, and public key is used for verification. If we observe the key sizes, public key for RSA is small compared to DSA hence verification using RSA is faster than DSA. Private key of RSA is longer than DSA hence, signing using RSA is much slower than DSA. ******************************************************************************** The details are as follows :- ================================================================================ Message length 64 ________________________________________________________________________________ KeySize : 512 SHA1withRSA Signing message : 61 Verifying signature : 9 MD5withRSA Signing message : 9 Verifying signature : 4 SHA1withDSA Signing message : 11 Verifying signature : 13 ________________________________________________________________________________ KeySize: 1024 SHA1withRSA Signing message : 39 Verifying signature : 4 MD5withRSA Signing message : 39 Verifying signature : 5 SHA1withDSA Signing message : 32 Verifying signature : 41 ________________________________________________________________________________ KeySize: 2048 SHA1withRSA Signing message : 251 Verifying signature : 19 MD5withRSA Signing message : 312 Verifying signature : 12 ================================================================================ Message length 1443 KeySize: 512 SHA1withRSA Signing message : 27 Verifying signature : 5 MD5withRSA Signing message : 8 Verifying signature : 1 SHA1withDSA Signing message : 10 Verifying signature : 12 ________________________________________________________________________________ KeySize: 1024 SHA1withRSA Signing message : 36 Verifying signature : 7 MD5withRSA Signing message : 37 Verifying signature : 2 SHA1withDSA Signing message : 28 Verifying signature : 44 ________________________________________________________________________________ KeySize: 2048 SHA1withRSA Signing message : 252 Verifying signature : 7 MD5withRSA Signing message : 254 Verifying signature : 8 ================================================================================ Message length 8112 KeySize: 512 SHA1withRSA Signing message : 11 Verifying signature : 6 MD5withRSA512 Signing message : 17 Verifying signature : 9 SHA1withDSA Signing message : 11 Verifying signature : 14 ________________________________________________________________________________ KeySize: 1024 SHA1withRSA Signing message : 27 Verifying signature : 3 MD5withRSA Signing message : 31 Verifying signature : 3 SHA1withDSA Signing message : 43 Verifying signature : 41 _______________________________________________________________________________ KeySize: 2048 SHA1withRSA Signing message : 261 Verifying signature : 7 MD5withRSA Signing message : 245 Verifying signature : 8 ================================================================================ Message length 37536 KeySize: 512 SHA1withRSA Signing message : 8 Verifying signature : 5 MD5withRSA Signing message : 7 Verifying signature : 1 SHA1withDSA Signing message : 13 Verifying signature : 17 ________________________________________________________________________________ KeySize: 1024 SHA1withRSA Signing message : 39 Verifying signature : 3 MD5withRSA Signing message : 41 Verifying signature : 6 SHA1withDSA Signing message : 48 Verifying signature : 200 ________________________________________________________________________________ KeySize: 2048 SHA1withRSA Signing message : 251 Verifying signature : 6 MD5withRSA Signing message : 226 Verifying signature : 7