[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with v4 key packet format
Daniel A. Nagy wrote:
In order to design a successor to v4 key packet format, it is important to
first identify its shortcomings. Here's a list of my problems with it:
1. No cryptographic binding between the encrypted private key material and
the public key material.
This results in a serious security issue, by allowing an attacker to replace
the public material thus compromising the private material with the first
use in the signature. There are various stop-gap measures to deal with this
attack, but the only sure protetction would be some MDC binding together the
private and the public key material.
I don't understand this attack.
2. No explicit count of MPIs constituting the key material (both public and
This information can only be inferred from the algorithm specifier, meaning
that any implementation that wants to perform key management must have some
rudimentary knowledge about all public key algorithms. This, in turn,
This appears to me to be incorrect - an implementation that didn't know
the algorithm could still deduce the number of MPIs by parsing the
packet until it is exhausted. This would mean introducing a requirement
that all public key parameters were MPIs, of course.
3. Key fingerprint depends on data unrelated to the actual key (namely:
This prevents solutions when signature keys are generated on the fly (e.g.
directly from a passphrase), as the key creation (or, in this case, key
registration) date is not available at the time of signing, thus making it
impossible to put am unambiguous reference to the public key into the
Not impossible, but I'll agree, crufty. One could use a fixed creation date.
4. More generally, creation time does not belong to the key packet.
Because it is just an attribute of the key as any other, thus belonging to
certificatiton signature sub-packets, rather than the key packet.
"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff