Re: [Hipsec] HIT collision probability
Rene Struik <rstruik.ext@gmail.com> Mon, 05 May 2014 19:32 UTC
Return-Path: <rstruik.ext@gmail.com>
X-Original-To: hipsec@ietfa.amsl.com
Delivered-To: hipsec@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 070691A0179 for <hipsec@ietfa.amsl.com>; Mon, 5 May 2014 12:32:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qztf7jyR7ag4 for <hipsec@ietfa.amsl.com>; Mon, 5 May 2014 12:32:40 -0700 (PDT)
Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by ietfa.amsl.com (Postfix) with ESMTP id E62431A018F for <hipsec@ietf.org>; Mon, 5 May 2014 12:32:39 -0700 (PDT)
Received: by mail-ie0-f180.google.com with SMTP id as1so8657188iec.39 for <hipsec@ietf.org>; Mon, 05 May 2014 12:32:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=LI1mbP0lw6UN8bQU4nCYZWrEgx9LAFknN3jgmPbxEy0=; b=eTN93GBjfFQhFM4irh17A179J4Q036XJCD5agZX+XFInmAh7NW3fMDRAWuLh1trhbr +j6vxW7NIMoDORXTW9NOAW+f4+CRCxaqq2l1gcbm1GqDZ1XEFD7Bm4O5nkDbh7QZm5VF RW+4YEEPEgzAQSrbPFu4NZNMIsZXJ7TP7uolBD3l04cWCtWQ/zou9NPKX6x0HQvKbk4s m9WoTH/y4O3EX2O0kC/f+tHwa5j/PbVf4AsAg9/CK8z4pxQCReAF+wSuKV22u5orkmPl g3uVeWEPNZD3H8+5K7D8dGDujD/+ciEPuMev3TT2RSXclgy/AgldETbKZ5EK4wNAuAvc /DUA==
X-Received: by 10.42.106.15 with SMTP id x15mr5618272ico.67.1399318356316; Mon, 05 May 2014 12:32:36 -0700 (PDT)
Received: from [192.168.1.103] (CPE0013100e2c51-CM001cea35caa6.cpe.net.cable.rogers.com. [99.231.3.110]) by mx.google.com with ESMTPSA id e6sm3927865igq.6.2014.05.05.12.32.34 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 May 2014 12:32:35 -0700 (PDT)
Message-ID: <5367E74D.3020501@gmail.com>
Date: Mon, 05 May 2014 15:32:29 -0400
From: Rene Struik <rstruik.ext@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-Version: 1.0
To: Robert Moskowitz <rgm@htt-consult.com>, hip WG <hipsec@ietf.org>
References: <53665F53.6010006@htt-consult.com> <5367DD73.5000007@htt-consult.com>
In-Reply-To: <5367DD73.5000007@htt-consult.com>
Content-Type: multipart/alternative; boundary="------------040402080906010604060207"
Archived-At: http://mailarchive.ietf.org/arch/msg/hipsec/ribSensE05M5LGLYlRf8b-hIzy4
Subject: Re: [Hipsec] HIT collision probability
X-BeenThere: hipsec@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "This is the official IETF Mailing List for the HIP Working Group." <hipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hipsec>, <mailto:hipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hipsec/>
List-Post: <mailto:hipsec@ietf.org>
List-Help: <mailto:hipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 05 May 2014 19:32:43 -0000
Hi Bob:
The formula is roughly p(k,n)=1*(1-1/n)*(1-2/n)*...*(1 - {k-1}/n), which
can be approximated as roughly e^{-k^2/(2n)}, where n is the size of the
set one takes uniformly selected samples from and where k is the number
of drawn samples.
Rene
On 5/5/2014 2:50 PM, Robert Moskowitz wrote:
>
> On 05/04/2014 11:40 AM, Robert Moskowitz wrote:
>> What population of HIs is needed for a 1%, 10%, 50% probability of a
>> HIT collision?
>>
>> I had the math once (like back in '99 or '00) and can't find it
>> (probably did not survive the Eudora to Thunderbird migration).
>> Thought I actually had this in a very early draft, but could not find
>> any such beast. Of course that would have been for HIPv1 HITs, not
>> HIPv2.
>>
>> Any help on the math would be appreciated. Also does it change with
>> PK algorithm or key length? (seems not to me).
>
> Using the code at: http://en.wikipedia.org/wiki/Birthday_attack
> and compiling and running it via:
> http://www.compileonline.com/compile_cpp11_online.php
>
> I get the following probablities for HIT collisions:
>
> First the population of HITs (96 bits of hash) is: 7.9×10²^(8)
>
> Then the probablities of collision are:
>
> .01% 3.98076e+12
> .1% 1.25911e+13
> 1% 3.99066e+13
> 10% 1.29209e+14
>
> And thus if each person in the world (7B) had 5 endpoints with HITs on
> them, the probablity
> of a collision would be 10^-6 % (p=e-8, pop=3.98066e+10).
>
>
>
>
>
> _______________________________________________
> Hipsec mailing list
> Hipsec@ietf.org
> https://www.ietf.org/mailman/listinfo/hipsec
--
email: rstruik.ext@gmail.com | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363
- [Hipsec] HIT collision probability Robert Moskowitz
- Re: [Hipsec] HIT collision probability Paul Lambert
- Re: [Hipsec] HIT collision probability Robert Moskowitz
- Re: [Hipsec] HIT collision probability Robert Moskowitz
- Re: [Hipsec] HIT collision probability Robert Moskowitz
- Re: [Hipsec] HIT collision probability Robert Moskowitz
- Re: [Hipsec] HIT collision probability Rene Struik
- Re: [Hipsec] HIT collision probability Robert Moskowitz
- Re: [Hipsec] HIT collision probability Rene Struik
- Re: [Hipsec] HIT collision probability Robert Moskowitz
- [Hipsec] Final thoughts on - Re: HIT collision pr… Robert Moskowitz