A demo project
For argument detail: rsa_benchmarking --help
Test file is artifical insert, for 10mb file:
$ base64 /dev/urandom | head -c 10000000 > file.txt
You should pay some attention to kl flag which indicate RSA keys' size for generating. For 512 bit RSA:
$ rsa_benchmarking -action 3 -kl 512
As default, kl is 2048, private and public keys are located in folder rsa_key under PEM encode.
OAEP and PKCS are supported. OAEP is default but you can set encryption type via et flag
Hash is needed when performing encryption/decryption, it is set via ht flag. These types of Hash are supported:
SHA256
SHA224
MD5
MD4
SHA512
SHA3_512
MD5SHA1
Note: Hash size by default for each type in BYTE
SHA256: 32 bytes
SHA224: 28 bytes
MD5: 16 bytes
MD4: 16 bytes
SHA512: 64 bytes
SHA3_512: 64 bytes
MD5SHA1: 36 bytes
via (vnkeymaster@gmail.com)[mailto:vnkeymaster@gmail.com]
License: http://www.wtfpl.net/txt/copying/