RustCrypto / RSA

RSA implementation in pure Rust
Apache License 2.0
557 stars 154 forks source link

feat: add uncheck_modulus_size feature #453

Open shuai132 opened 1 month ago

shuai132 commented 1 month ago

Same to #418, some projects use a modulus size larger than 4096. And the source code may be written in C++ or Java. There are still some issues when using the decrypt method, for example, Pkcs1v15Encrypt::decrypt.

Therefore, I have implemented a feature called uncheck_modulus_size, hoping it will be useful for others.

tarcieri commented 1 month ago

This should be fixed with explicit APIs for large moduli, not a cargo feature that can cause spooky-action-at-a-distance among other dependencies that aren't expecting it

shuai132 commented 1 month ago

Thanks, I just tested use openssl(c++), got same result. I will use my fork just fine! thx