Re: [dane] hash truncated to 28 octets
Viktor Dukhovni <ietf-dane@dukhovni.org> Wed, 05 August 2015 18:49 UTC
Return-Path: <ietf-dane@dukhovni.org>
X-Original-To: dane@ietfa.amsl.com
Delivered-To: dane@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AF3AB1A8AD4 for <dane@ietfa.amsl.com>; Wed, 5 Aug 2015 11:49:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] 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 pr9V3xa367v8 for <dane@ietfa.amsl.com>; Wed, 5 Aug 2015 11:49:16 -0700 (PDT)
Received: from mournblade.imrryr.org (mournblade.imrryr.org [38.117.134.19]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9D52E1A8A56 for <dane@ietf.org>; Wed, 5 Aug 2015 11:49:16 -0700 (PDT)
Received: by mournblade.imrryr.org (Postfix, from userid 1034) id 82E8C284D68; Wed, 5 Aug 2015 18:49:15 +0000 (UTC)
Date: Wed, 05 Aug 2015 18:49:15 +0000
From: Viktor Dukhovni <ietf-dane@dukhovni.org>
To: dane@ietf.org
Message-ID: <20150805184915.GR19228@mournblade.imrryr.org>
References: <2015080410094450139169@cnnic.cn> <alpine.LFD.2.11.1508040347480.9978@bofh.nohats.ca> <20150804121245.GI19228@mournblade.imrryr.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20150804121245.GI19228@mournblade.imrryr.org>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: <http://mailarchive.ietf.org/arch/msg/dane/fYwKwL5ZQfa6aaj6BdAUVYjqdTE>
Subject: Re: [dane] hash truncated to 28 octets
X-BeenThere: dane@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: dane@ietf.org
List-Id: DNS-based Authentication of Named Entities <dane.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dane>, <mailto:dane-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dane/>
List-Post: <mailto:dane@ietf.org>
List-Help: <mailto:dane-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dane>, <mailto:dane-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Aug 2015 18:49:17 -0000
On Tue, Aug 04, 2015 at 12:12:45PM +0000, Viktor Dukhovni wrote: > On Tue, Aug 04, 2015 at 03:50:32AM -0400, Paul Wouters wrote: > > > >2,since some local-parts are longer than 28 octets, are there some collisions after hash?truncated?to?28?octets?? > > > > I think if you have 100.000 email addresses in one domain, the chance of > > collision would be pretty small. but non-zero. > > You'd need 2^112 email addresses for an appreciable chance of > collision. If every person on the planet (say 10^{10} people some > day) each had 100 email addresses in the same domain, that'd be > 10^{12} or ~2^{40} addresses. The collision probability would be > around 2^{80}/2^{112} = 2^{-32} ~ 10^{-6}. With "just" 10^{10} > addresses, it drops by a factor of 10^4 to 10^{-10}. For the record, the above vastly overestimates the collision probability. I accidentally computed the probability for a 112-bit hash, not a 224-bit hash. For a 224-bit hash, the collision probability with 10^{12} addresses is around 2^{80}/2^{224} or 2^{-144}. No collisions are likely before Earth is incinerated by a red-giant Sun around 2^{85} nanoseconds from now. -- Viktor.
- [dane] hash truncated to 28 octets Jiankang Yao
- Re: [dane] hash truncated to 28 octets Paul Wouters
- Re: [dane] hash truncated to 28 octets Hosnieh Rafiee
- Re: [dane] hash truncated to 28 octets Viktor Dukhovni
- Re: [dane] hash truncated to 28 octets Viktor Dukhovni