Snowiiii / Pumpkin

Empowering everyone to host fast and efficient Minecraft servers.
https://snowiiii.github.io/Pumpkin/
MIT License
2.35k stars 67 forks source link

RSA is slow #119

Open Snowiiii opened 2 weeks ago

Snowiiii commented 2 weeks ago

Describe the bug The current RSA crate we use for Packet encryption has slow key generation, This is basically the only thing which takes time for pumpkin to start, otherwise we should be at 0ms starting time, I searched some similar crates but only found ring which uses OpenSSL mostly, Which we want to avoid especially in rust, See https://github.com/Snowiiii/Pumpkin/pull/43

To Reproduce Start Pumpkin and benchmark the RSA key generation

Expected behavior Faster key generation

Snowiiii commented 2 weeks ago

I made an issue on RSA GitHub, See https://github.com/RustCrypto/RSA/issues/454