Hello, I'm writing a game networking engine and decided to use RSA as part of my security. What I need is fast code to generate public keys and encrypt and decrypt a block of bytes using the keys.
I found some code at http://efgh.com/software/ that has exactly what I need: void GenerateKeys(mpuint &d, mpuint &e, mpuint &n); void EncryptDecrypt(mpuint &result, const mpuint &source, const mpuint &e, const mpuint &n); The problem with that code is that it is not optimized and so is too slow. I found a link to Crypto++ on a message board and downloaded it. Crypto++ looks very powerful. However, as a game programmer I'm on a short schedule and need just those two functions. No disparement intended, but I can't put the entire library in my game just for two functions and don't have a lot of time to learn a large system. Is there any way I can pull out just what I need, and possibly an integer library as well, and do all this in under an hour or so?
