From owner-freebsd-arch Fri Mar 16 12:37:28 2001 Delivered-To: freebsd-arch@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 2FC7237B718 for ; Fri, 16 Mar 2001 12:37:25 -0800 (PST) (envelope-from roam@orbitel.bg) Received: (qmail 15151 invoked by uid 1000); 16 Mar 2001 20:36:41 -0000 Date: Fri, 16 Mar 2001 22:36:41 +0200 From: Peter Pentchev To: Terry Lambert Cc: Poul-Henning Kamp , arch@FreeBSD.ORG Subject: Re: add MD5Chunk(filename, .., offset, length) to libmd Message-ID: <20010316223641.D8968@ringworld.oblivion.bg> Mail-Followup-To: Terry Lambert , Poul-Henning Kamp , arch@FreeBSD.ORG References: <20010316214310.A8968@ringworld.oblivion.bg> <200103162000.NAA16923@usr02.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103162000.NAA16923@usr02.primenet.com>; from tlambert@primenet.com on Fri, Mar 16, 2001 at 08:00:17PM +0000 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Mar 16, 2001 at 08:00:17PM +0000, Terry Lambert wrote: > > > >As phk pointed out in the SITE MD5 thread, it is sometimes useful > > > >to compute the MD5 hash over a range of a file. I agree this is trivial > > > >to implement, but why not have it in our standard toolbox? > > > > > > If you include manpage patches I'll commit it. > > > > Thanks! :) > > > Please implement the "File" version as a special case of "Chunk", > instead of duplicating all that code. I realize that it's > unlikely that these algorithms will ever change, causing the > code to get out of sync, but duplicate code is generally a bad > idea. Will do; thanks for the (obvious, yet something I missed) idea! G'luck, Peter -- No language can express every thought unambiguously, least of all this one. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message