ietf-openpgp
[Top] [All Lists]

Preliminary V4 RSA key support added. But I can't test...

1998-04-03 12:37:59
On Fri, 3 Apr 1998 nospam-seesignature(_at_)ceddec(_dot_)com wrote:

Why not, for V4 keys, treat RSA MPIs just like DSA or DH MPIs?

That is, encrypt the MPI whole and not do any resets.  In this case
encrypt all 4 MPIs in a stream starting with the first bitcount octet.

And while I am here, you are storing U (which is iqmp in SSLeay) as part
of the RSA secret key.  Might I suggest (given the rest of the
incompatibilites already there) that we also include dmp1 and dmq1?  And
place those just above U?  I calculate them, but I could calculate U.
(see my getkey2.c and rsa.h from SSLeay, and the SSLeay docs about what
these are used for - it works with just N,E, and D, but is much faster
with the rest of these params).

I also have a problem with Key v.s. Subkey packets.  I use DH keys for El
Gamal signing.  Do they belong in a key or subkey packet?  What about an
RSA key used for both?

I generated a V4 RSA key as a primary key and PGP 5.0 promptly converted
it to a V3 packet, V3 Keyid, V3 Fingerprint, etc.  Since I can't export
a V4 RSA key at the moment, I don't know if I would be able to read it.

I am going to have to rework my interface, currently I have it if the DSA
and DH pointers are identical, then it points to a RSA structure.

--- reply to tzeruch - at - ceddec - dot - com ---


<Prev in Thread] Current Thread [Next in Thread>