Re: [hybi] Computation part of handshake

Dave Cridland <dave@cridland.net> Fri, 25 February 2011 21:49 UTC

Return-Path: <dave@cridland.net>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7D01F3A6A5A for <hybi@core3.amsl.com>; Fri, 25 Feb 2011 13:49:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.532
X-Spam-Level:
X-Spam-Status: No, score=-2.532 tagged_above=-999 required=5 tests=[AWL=0.067, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mWTcNpRWDuiZ for <hybi@core3.amsl.com>; Fri, 25 Feb 2011 13:49:38 -0800 (PST)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [IPv6:2001:470:1f09:882:2e0:81ff:fe29:d16a]) by core3.amsl.com (Postfix) with ESMTP id 3BA903A6A48 for <hybi@ietf.org>; Fri, 25 Feb 2011 13:49:38 -0800 (PST)
Received: from localhost (peirce.dave.cridland.net [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id D90C41168087; Fri, 25 Feb 2011 21:50:29 +0000 (GMT)
X-Virus-Scanned: Debian amavisd-new at peirce.dave.cridland.net
Received: from peirce.dave.cridland.net ([127.0.0.1]) by localhost (peirce.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oSZfkLdOGUo1; Fri, 25 Feb 2011 21:50:26 +0000 (GMT)
Received: from puncture (puncture.dave.cridland.net [IPv6:2001:470:1f09:882:221:85ff:fe3f:1696]) by peirce.dave.cridland.net (Postfix) with ESMTPA id 7C0AA1168067; Fri, 25 Feb 2011 21:50:25 +0000 (GMT)
References: <AANLkTi=UenyXvGt4awT6_xGuK9jA_kSfcVR6p07yqY5h@mail.gmail.com> <20110225170214.GE23570@1wt.eu> <AANLkTikRWsxmuJ9TgCStGruY=qn=Xeu29mpEqvkvQonV@mail.gmail.com> <20110225172958.GI23570@1wt.eu> <AANLkTi=VkR2z7QYDBT2GaYWWt625H+zamS=zeRN22jtv@mail.gmail.com>
In-Reply-To: <AANLkTi=VkR2z7QYDBT2GaYWWt625H+zamS=zeRN22jtv@mail.gmail.com>
MIME-Version: 1.0
Message-Id: <2745.1298670625.366666@puncture>
Date: Fri, 25 Feb 2011 21:50:25 +0000
From: Dave Cridland <dave@cridland.net>
To: Silvio Ventres <silvio.ventres@gmail.com>, "Salvatore.Loreto@ericsson.com" <Salvatore.Loreto@ericsson.com>, Server-Initiated HTTP <hybi@ietf.org>, "jhildebr@cisco.com" <jhildebr@cisco.com>, Willy Tarreau <w@1wt.eu>
Content-Type: text/plain; delsp="yes"; charset="us-ascii"; format="flowed"
Subject: Re: [hybi] Computation part of handshake
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 25 Feb 2011 21:49:39 -0000

On Fri Feb 25 17:34:54 2011, Silvio Ventres wrote:
> The question is, why use hashing at all ?
> Use some simple math, why add complexity ?

Just thought I'd pick up on this.

It's just a very common method of taking an input and producing an  
output that is both verifiable and very unlikely to clash (ie,  
collide) with an output for a different input, even if the inputs are  
similar.

It's *really* hard to find "simple math" that gets even close to  
this, and hashes are very widely implemented even on hardware, and as  
such a useful building block. In addition, one hash operation is  
pretty cheap, these days.

Dave.
-- 
Dave Cridland - mailto:dave@cridland.net - xmpp:dwd@dave.cridland.net
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade