Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- SSHv1's exponent is always 35
June 21, 2006, 3:52 pm
rate this thread
exponent, the exponent is always 35. Should it be?
The SSHv1 spec states that the public (and server) exponent should be
transmited as an mpint. Why bother transmiting it at all if it's
always going to be 35? Or why not transmit it as a regular 32-bit
integer as opposed to an mpint?
Re: SSHv1's exponent is always 35
It's not _guaranteed_ to be. One particular key generator always
chooses the exponent to be 35, and that particular key generator is
more widely used than others, so you will see an overwhelming
majority of exponents being 35. But it's permitted for someone to
write a key generator which uses a different (or even - *gasp* - a
randomly chosen) exponent, and therefore clients and servers are
required to be able to handle this case correctly in case it comes
(PuTTY's key generator consistently uses 37, as it happens, because
my generation algorithm found it more convenient to have the
exponent be prime. However, PuTTY's key generator isn't often used
to generate _server_ public keys, although it should work fine if
someone really wanted to.)
Simon Tatham "A defensive weapon is one with my finger on the
- » forced-commands-only option for any user, not just root
- — Next thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum