I tried to measure the performance of the rsa algorithm by running the following command :
$:openssl speed rsa
Output :
sign verify sign/s verify/s
rsa 512 bits 0.000048s 0.000003s 20923.5 355236.0
rsa 1024 bits 0.000102s 0.000007s 9757.6 152852.6
rsa 2048 bits 0.000676s 0.000022s 1479.2 46028.3
rsa 3072 bits 0.002385s 0.000041s 419.3 24407.0
rsa 4096 bits 0.005083s 0.000069s 196.7 14392.3
rsa 7680 bits 0.041772s 0.000234s 23.9 4281.9
rsa 15360 bits 0.231628s 0.000960s 4.3 1041.6
As we see from the output of this command the verify operation took less time than the sign one can anyone explain me why verify is much faster than sign? Thanks in advance !