From owner-freebsd-hackers Sat Dec 15 3:58:10 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gadolinium.btinternet.com (gadolinium.btinternet.com [194.73.73.111]) by hub.freebsd.org (Postfix) with ESMTP id 751D737B417 for ; Sat, 15 Dec 2001 03:58:02 -0800 (PST) Received: from host213-123-128-172.in-addr.btopenworld.com ([213.123.128.172] helo=there) by gadolinium.btinternet.com with smtp (Exim 3.22 #8) id 16FDS3-0003kr-00; Sat, 15 Dec 2001 11:57:59 +0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic Marks To: Mike Wiacek , freebsd-hackers@freebsd.org Subject: Re: sha1 program Date: Sat, 15 Dec 2001 11:58:14 +0000 X-Mailer: KMail [version 1.3.2] References: <20011215062918.F74051-400000@siteintegrity.net> In-Reply-To: <20011215062918.F74051-400000@siteintegrity.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Saturday 15 December 2001 11:34 am, Mike Wiacek wrote: > We currently have a MD5 driver, but no SHA1 driver, even though > we have SHA1 as part of libmd. So I took md5.c from > /usr/src/sbin/md5 and made sha1.c as well as a respective man page. > Attached is the source file, the manual page for it, as well as a > makefile. > > Hope this is useful and makes its way into the tree. Md5 has some > questionable attacks against it, and Schneier claims that > sha is resillient to such attacks. > > mike Why not have one program for all the supported hash algorithms as opposed to individual ones for each (md5, sha1) ? You could use something like: > hash -a md5 /some/file > hash -a sha1 /some/other/file -- Dominic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message