Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

keymastervn/rsa_benchmarking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsa_benchmarking

A demo project

For argument detail: rsa_benchmarking --help

Prepare benchmark input

Test file is artifical insert, for 10mb file:

$ base64 /dev/urandom | head -c 10000000 > file.txt

Generate Key

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.

Encryption Type

OAEP and PKCS are supported. OAEP is default but you can set encryption type via et flag

Hashing

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

License and Contact

via (vnkeymaster@gmail.com)[mailto:vnkeymaster@gmail.com]

License: http://www.wtfpl.net/txt/copying/

About

Golang RSA benchmark performance in generating keys, encrypting and decrypting files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published