| ▲ | breakwaterlabs 5 hours ago | |||||||||||||||||||||||||||||||
EC, not RSA. RSA would *never* allow something like that. It would need to be a 3, 5, or 7, since a prime is required. | ||||||||||||||||||||||||||||||||
| ▲ | nneonneo 5 hours ago | parent [-] | |||||||||||||||||||||||||||||||
“d=4” is a perfectly legal RSA private key. The corresponding public key would probably have a weird e (not 65537, the usual choice), but would otherwise be legal, and could have an arbitrarily large modulus n (thus appearing “secure”). Note that p,q (the primes you’re thinking of) are not actually required for decryption. They enable you to calculate d, the decryption exponent, and also enable decryption-time optimizations (exponentiation with d_p and d_q followed by CRT recombination), but that’s optional. In fact, p,q can be computed from n, e and d. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||