Hello everyone. I need to introduce some basic RSA encryption in my application. I used Crypto++ a lot for AES stuff and it worked great, so it's not a surprise that I managed to use RSA smoothly.
Yet, I am wondering about the time needed to generate the RSA keys. I use the following code (it is a - more or less - copy from the examples) with the intention to generate the 4096-bit key: CryptoPP::AutoSeededRandomPool rng; CryptoPP::InvertibleRSAFunction parameters; parameters.GenerateRandomWithKeySize(rng, 4096); CryptoPP::RSA::PrivateKey privateKey(parameters); CryptoPP::RSA::PublicKey publicKey(parameters); privateKey.Save(CryptoPP::StringSink(privateKey_string)); std::string publicKey_string; publicKey.Save(CryptoPP::StringSink(publicKey_string)); The method takes from 3 to about 7 seconds to execute and the keys are ready. I am not an crypto-expert but isn't it a little bit to quick to create the 4096-bit long key pair? Could someone shed some light on the issue or point me to the materials about key generation algorithms used by Crypto++? Thank you very much. -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
