What I've read:
Seems in practice, will first choose an e
, then choose the 2 big primes p1
and p2
.
What I've learned so far:
e
is usually between(2^16, 2^32)
, e.g2^16 + 1 = 65537
. // TODO .. not suree
should not be too large, otherwise the public-key operation is slow.
I've also try to read openssh source code, but can't figure out it yet.
Questions
- How openssh actually choose
e
, when creating aRSA
key? - If possible, can u point out relevant file/functions in the source code.
- If a software choose a fixed
e
(e.g65537
) instead of a random value, will that make the RSA key less secure?