From owner-freebsd-arch Fri Mar 16 12: 2: 2 2001 Delivered-To: freebsd-arch@freebsd.org Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (Postfix) with ESMTP id 3BD2F37B719 for ; Fri, 16 Mar 2001 12:01:58 -0800 (PST) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.9.3/8.9.3) id MAA16834; Fri, 16 Mar 2001 12:57:17 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp03.primenet.com, id smtpdAAA5sa4XG; Fri Mar 16 12:57:05 2001 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id NAA16923; Fri, 16 Mar 2001 13:00:22 -0700 (MST) From: Terry Lambert Message-Id: <200103162000.NAA16923@usr02.primenet.com> Subject: Re: add MD5Chunk(filename, .., offset, length) to libmd To: roam@orbitel.bg (Peter Pentchev) Date: Fri, 16 Mar 2001 20:00:17 +0000 (GMT) Cc: phk@critter.freebsd.dk (Poul-Henning Kamp), arch@FreeBSD.ORG In-Reply-To: <20010316214310.A8968@ringworld.oblivion.bg> from "Peter Pentchev" at Mar 16, 2001 09:43:10 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > >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. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message