Re: [ftpext] New Version Notification for draft-bryan-ftp-hash-05
Iljitsch van Beijnum <iljitsch@muada.com> Mon, 12 July 2010 09:59 UTC
Return-Path: <iljitsch@muada.com>
X-Original-To: ftpext@core3.amsl.com
Delivered-To: ftpext@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 366BA3A67A5 for <ftpext@core3.amsl.com>; Mon, 12 Jul 2010 02:59:29 -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=-2.599, NO_RELAYS=-0.001]
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 exAbBJz+q469 for <ftpext@core3.amsl.com>; Mon, 12 Jul 2010 02:59:28 -0700 (PDT)
Received: from sequoia.muada.com (unknown [IPv6:2001:1af8:2:5::2]) by core3.amsl.com (Postfix) with ESMTP id 329033A67C3 for <ftpext@ietf.org>; Mon, 12 Jul 2010 02:59:27 -0700 (PDT)
Received: from [IPv6:2001:720:410:100f:223:32ff:fec4:ba94] ([IPv6:2001:720:410:100f:223:32ff:fec4:ba94]) (authenticated bits=0) by sequoia.muada.com (8.13.3/8.13.3) with ESMTP id o6C9x8NO063171 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for <ftpext@ietf.org>; Mon, 12 Jul 2010 11:59:09 +0200 (CEST) (envelope-from iljitsch@muada.com)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Apple Message framework v1081)
From: Iljitsch van Beijnum <iljitsch@muada.com>
In-Reply-To: <alpine.DEB.2.00.1006291639050.30072@familiar.castaglia.org>
Date: Mon, 12 Jul 2010 11:59:32 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <D2D3FF30-3B2D-4EFA-A308-18A8A56DE596@muada.com>
References: <20100629052221.092623A6A5C@core3.amsl.com> <alpine.DEB.2.00.1006300000470.1493@tvnag.unkk.fr> <AANLkTikZFhGd3PIwDNrNcKymcoRzc4RHxIJU8TGPztTp@mail.gmail.com> <alpine.DEB.2.00.1006291639050.30072@familiar.castaglia.org>
To: ftpext@ietf.org
X-Mailer: Apple Mail (2.1081)
Subject: Re: [ftpext] New Version Notification for draft-bryan-ftp-hash-05
X-BeenThere: ftpext@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <ftpext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ftpext>
List-Post: <mailto:ftpext@ietf.org>
List-Help: <mailto:ftpext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 12 Jul 2010 09:59:29 -0000
A more efficient and less DoS-prone way to implement this would be for the client to tell the server the hash, and for the server to tell the client whether the file matches the hash. To optimize this, the hash wouldn't be a straigh hash over the entire file, but consist of three parts: the file length, a hash over a small part of the file (say, the first and last kilobyte) and finally a hash over the entire file. So if the length doesn't match, the file doesn't match the hash and there is no need to access the file. If the hash over the small part doesn't match, there is no match and hashing the entire file is avoided. Nitpick: repeating the first part of the abstract in the introduction verbatim is a bit annoying.
- Re: [ftpext] New Version Notification for draft-b… Daniel Stenberg
- Re: [ftpext] New Version Notification for draft-b… Anthony Bryan
- Re: [ftpext] New Version Notification for draft-b… TJ Saunders
- Re: [ftpext] New Version Notification for draft-b… Iljitsch van Beijnum
- Re: [ftpext] New Version Notification for draft-b… Paul Ford-Hutchinson
- Re: [ftpext] New Version Notification for draft-b… Anthony Bryan
- Re: [ftpext] New Version Notification for draft-b… Iljitsch van Beijnum
- Re: [ftpext] New Version Notification for draft-b… Anthony Bryan
- Re: [ftpext] New Version Notification for draft-b… Iljitsch van Beijnum
- Re: [ftpext] New Version Notification for draft-b… Richard Koenning
- Re: [ftpext] New Version Notification for draft-b… Tim Kosse