Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

rustcrypto/rsa
master @ 4a6006f
5
Fixes
2
CVEs
MEDIUM
Peak severity
50.0%
Coverage
Highlights
Cryptographic Issues: 1 prior fix. Scrutinize any change in this area.
src/key.rs: most-fixed (3 issues). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Timing Attack: Variable-time modular arithmetic in private key operations can leak secret exponents via timing side-channels. The implementation was migrated from the variable-time num-bigint-dig dependency to the constant-time crypto-bigint library to prevent timing leakage.
Side-Channel Attack: Subtle mathematical shortcuts, such as falling back zero-valued blinding factors to one, compromise uniform randomness during RSA blinding and expose private key operations to hardware side-channel analysis.
Weak Cryptographic Algorithm: Allowing small modulus sizes during key creation or validation permits weak, easily factorable keys to be used. Explicit size limits must be validated at construction boundaries.