🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #7923

Re: Uniqueness of Key ID

#7923
From: Imad R. Faiad
Date: Thu, 09 Sep 1999 00:00
158 lines
7948 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings,

I am not sure whether you actually read my post before responding to it.

So as not to cloud the issue, here is the meat of what I was discussing in
question and answer form.:-

Q. Does a PGP Key ID need to be unique?
A. No, a PGP Key ID need not be unique.  If you search long enough you will
   find many PGP Keys sharing the same Key ID

Q. Does a PGP Fingerprint need to be unique?
A. No, a PGP Fingerprint need not be unique.  If you search long enough you
   will find many PGP Keys sharing the same Fingerprint.

Q. Does a PGP Key ID / Fingerprint pair need be unique?
A. No, PGP Key ID / Fingerprint pair need not be unique.  If you search long
   enough you will find many PGP Keys sharing the same Key ID and
   Fingerprint.

Q. While doing a search on a key server, I found a PGP key other than mine
   having the same Key ID as my key.  Can the owner of the other key decrypt
  
   my messages or sign messages on my behalf?
A. No, he will not be able to decrypt your messages or sign messages on your
   behalf.  What makes a key unique are all it's components put together.

Q. While doing a search on a key server, I found a PGP key other than mine
   having the same Key ID as my key, I checked it's fingerprint, it was the
   same as my key.  Can the owner of the other key decrypt my messages or
   sign messages on my behalf?
A. No, he will not be able to decrypt your messages or sign messages on your
   behalf.  What makes a key unique are all it's components put together.

Q. What good are PGP Key ID's and Fingerprints for?
A. They are nothing but tags, to assist a PGP user to identify a key.
   
So, bearing in mind the above, in my view whether you can or cannot engineer
a PGP Key ID / PGP Key Fingerprint is inconsequential as far as the security
of a PGP Key is concerned.  This is always true, unless you have broken the
hash or the PK algorithm.

On Wed, 08 Sep 1999 20:17:07 +0200, in alt.security.pgp "Thomas J. Boschloo"
<nospam@multiweb.nl> wrote:

>"Imad R. Faiad" wrote:
>> 
>> It is correct that the Key ID is a 64 bits value, however, the Key ID
need
>> not be unique.  That is you may have 2 keys in your keyring sharing the
same
>> 64 bits Key ID and they will still be distinct keys.  The same applies
for
>
>Not true. In PGP 553i I tried to add two keys with the same 64 bit KeyID
>value, couldn't add it. The 64 bit value is how pgp distinquises two
>keys, not by fingerprint.

Could you please post those keys?  I suspect that the keys must be corrupt. 
This is why you could not add them to your keyring, at times when you try to
add corrupt keys PGP will crash too.

Here is a quote from the draft-ietf-openpgp-formats-06.txt, regarding the
uniqueness of PGP Key ID's and Fingerprints:-

***BEGIN QUOTE***
3.3. Key IDs
   A Key ID is an eight-octet scalar that identifies a key.
   Implementations SHOULD NOT assume that Key IDs are unique.

11.2. Key IDs and Fingerprints
....
   Note that it is possible for there to be collisions of key IDs --
   two different keys with the same key ID. Note that there is a much
   smaller, but still non-zero probability that two different keys have
   the same fingerprint.
***END QUOTE***
>
>> fingerprints.  A PGP fingerprint need not be unique.  Having two keys
with
>> the same Key ID and fingerprint does not necessarily mean that they are
the
>> same key.
>
>Since the fingerprint is a 128 bit MD5 value, or a 160 bit SHA-1 value,
>having two distinct keys with the same fingerprint is highly improbable.
>If you did have them, you will be the first person on earth to have
>found a collision in either MD5 or SHA-1! This would be world news and
>make you famous!!!

I made no such claims, however, your argument has inspired me to give it a
try (please see below).
A hash function maps an arbitrary finite length bit strings to a bit string
of fixed length, say n bits.  The function is a many to one, therefore it is
inherently prone to collisions.  Assuming that the hash function is not
flawed, the larger the bits of the hash, the less the likely hood of a
collision.  Even if I found a collison, I cannot see how this is going to
make me or anyone famous?  We already know that all many to one functions
produce collisions.  On the other hand if you ever manage to break the MD5
or the SHA1 hash, then this will sure be a ticket to fame and fortune. 
Unfortunately I have no such capability, and I have made no such claims.
>
>> While it is easy to engineer a 32 bits PGP key ID (much much easier for
DSS
>> keys), it is a lot harder to engineer a 64 bits PGP key ID.  I would
venture
>> to say that on average, engineering a fingerprint is as hard as breaking
the
>> hash or breaking the key.
>
>The last is true, but engineering a 64 bit key ID is not that hard (for
>RSA). I once did it! It just means changing the last 64 bits of the key
>modulus. Then you would need to factor the resulting number (haven't
>done that) and calculate the new secret key from it. Factoring the
>changed modulus won't be hard on average because it would have more then
>two prime dividers.

Yes it is possible to engineer a 64 bits Key ID.  However, to be honest with
you, in light of what you have stated above, I doubt very much whether you
ever did it.  FYI an RSA modulus n is the product of two primes p and q.  It
follows therefore, that all RSA modulus have two prime factors.  This does
not make them any easier to factor.  Unless of course you have come up with
a very efficient factoring algorithm  That, I very much doubt, unless of
course you will publish such algorithm so that we may ascertain whether it
actually works.

Here is a flawed algorithm for engineering PGP Key fingerprints, which was
inspired by your 64 bits PGP Key ID engineering algorithm:-

- - -----BEGIN 1 = 2 -----
It's not that hard really, all you need to do is hexedit the key and change
the 128 or 160 bits fingerprint.  Then take that fingerprint and reverse
engineer it so as to get all the components used to generate the hash
(haven't done that).
- - -----END 1 = 2 -----

Obviously my claim is flawed, to say the least...

>
>Thomas


Best Regards

Imad R. Faiad
-----BEGIN PGP SIGNATURE-----
Version: 6.0.2ckt http://irfaiad.virtualave.net/
Comment: Assert your right to privacy, use PGP
Comment: KeyID: 0x001FA1AD
Comment: Fingerprint: D09D 1A66 A6C8 4FD6 E414  1E35 C9A0 B17F 001F A1AD

iQA/AwUBN9gxHsmgsX8AH6GtEQKtAwCg00ekcipDtIMQlIdTEEGuQ4TS7mUAn0ML
GDr0/f6RmUlI//MNvMTCIJuY
=Mqgh
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <37dafe4a.89059501@news.cyberia.net.lb>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.mbox.zip!not-for-mail
References: <7qtmmq$nia$1@lure.pipex.net> <37D4161B.B0AE1BB2@multiweb.nl> <37d4b9e5.37031520@news.cyberia.net.lb> <37D6A823.AD38FB7@multiweb.nl>

Show Full Headers
Complete Article Headers
Message-ID: <37dafe4a.89059501@news.cyberia.net.lb>
Subject: Re: Uniqueness of Key ID
Date: Thu, 09 Sep 1999 00:00:00 +0000
From: maticREMOVETHIS@cyberia.net.lb (Imad R. Faiad)
References: <7qtmmq$nia$1@lure.pipex.net> <37D4161B.B0AE1BB2@multiweb.nl> <37d4b9e5.37031520@news.cyberia.net.lb> <37D6A823.AD38FB7@multiweb.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.mbox.zip!not-for-mail
X-Deja-AN: 523060110
Distribution: world
Cache-Post-Path: cordoba!unknown@opti.cyberia.net.lb
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
X-Complaints-To: abuse@gtei.net
X-Trace: /w/N6X3BGoCMRfSmFqfvFOi5q63B1NsF7932Uq1HuW04mVYChJsuCfbOq5zAnr+D9dWbs0z8zOVR!UC2iYnH0jqMRR1fpuc2pMolJZMaZ2QMgKdTTOCpiQGblMJ6+4FF1fZu8g0xx+iE2HUmeW5p9TLn/!ew==
Organization: Ye 'Ol Disorganized NNTPCache groupie
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 09 Sep 1999 18:37:38 GMT
Newsgroups: alt.privacy,alt.privacy.anon-server,alt.security.pgp