Re: [dane] hash truncated to 28 octets

Viktor Dukhovni <ietf-dane@dukhovni.org> Tue, 04 August 2015 12:12 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 60EC21A1BD1 for <dane@ietfa.amsl.com>; Tue, 4 Aug 2015 05:12:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.2
X-Spam-Level:
X-Spam-Status: No, score=-1.2 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, 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 wGmYGelBhGWi for <dane@ietfa.amsl.com>; Tue, 4 Aug 2015 05:12:47 -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 073721A1BB0 for <dane@ietf.org>; Tue, 4 Aug 2015 05:12:46 -0700 (PDT)
Received: by mournblade.imrryr.org (Postfix, from userid 1034) id BE6E7284D71; Tue, 4 Aug 2015 12:12:45 +0000 (UTC)
Date: Tue, 04 Aug 2015 12:12:45 +0000
From: Viktor Dukhovni <ietf-dane@dukhovni.org>
To: dane@ietf.org
Message-ID: <20150804121245.GI19228@mournblade.imrryr.org>
References: <2015080410094450139169@cnnic.cn> <alpine.LFD.2.11.1508040347480.9978@bofh.nohats.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <alpine.LFD.2.11.1508040347480.9978@bofh.nohats.ca>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: <http://mailarchive.ietf.org/arch/msg/dane/4tYjmNyR40hZVYID6saHV0jJemQ>
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: Tue, 04 Aug 2015 12:12:48 -0000

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}.

So we'd need around 10^10 Gmail sized domains before seeing a
collision in one of them.

-- 
	Viktor.