[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Malformed Signatures?
> a "pgp -kc paul" PGP 2.6 declares my signatories:
> (Malformed or obsolete signature format)
> and asks if I would like it to:
> Remove bad signatures (Y/n)?
> Does this mean what I think it means?
A PGP signature is made like this (I think):
1. Decide what to sign. In the case of a signature on a key, it
includes the key and the user-ID to which the signature will
attest, the date, and some other stuff.
2. Generate a digest of the message to be signed. This uses MD5.
3. Encapsulate the digest in some way. The old way used some simple
padding, and the new way uses slightly more complex padding.
PGP versions up to 2.2 always generated the old format, but 2.2
could understand both formats. PGP 2.3 could understand both
formats, and could generate either format under control of the
"pkcs_compat" option. PGP 2.5 and 2.6 don't like the old format,
and I am not sure how easy it would be to teach them to understand
4. RSA encrypt the encapsulated digest, using the secret key of the
signer. The results obviously depend on the type of encapsulation
chosen in step 3.
5. Encapsulate the encrypted digest and some other stuff in a PGP
If you want PGP 2.5 and 2.6 to understand your signatures, you have to
use the PKCS encapsulation at step 3 above. This means that you have to
ask people who have already signed your key using the old method to sign
it again using the new method.
--apb (Alan Barrett)