Right now, encoding to ssh-rsa format always encodes exponent as an unsigned 32 bit int. That is correct behavior for the typical 65537 exponent that current keys I generate have, but I have older keys with an exponent of 35, and they are encoded in ssh-rsa format in an unsigned 8 bit int. These keys don't encode to the same format with my tool that they do with ssh-keygen.