<
[email protected]> wrote:
Here's the contents of a sample file:
In the public blob, the exponent of the RSA key is represented by the
byte sequence
00 00 00 04 00 01 00 01
i.e. a length field indicating that 4 bytes of the number follow, and
then the actual number is given with a leading zero byte.
That's the wrong representation. PuTTY's key file encoding follows the
normal SSH convention for an mp-int: a leading zero byte should only
be included if the topmost bit of the next byte is set. An exponent of
0x10001 should be encoded as
00 00 00 03 01 00 01
(However, the leading zero byte on the _modulus_, immediately
following that mis-encoded exponent, is correct, because the next byte
is 0xDF.)
Similarly, your private blob has a leading zero byte on every integer
it includes, regardless of the value of the following nonzero byte.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)