From owner-freebsd-audit Wed May 2 14:37:32 2001 Delivered-To: freebsd-audit@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 5949137B43C for ; Wed, 2 May 2001 14:37:27 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id XAA25955; Wed, 2 May 2001 23:37:19 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Dima Dorfman Cc: audit@FreeBSD.ORG Subject: Re: sha1 support in md5(1) References: <20010429213715.06D613E0B@bazooka.unixfreak.org> From: Dag-Erling Smorgrav Date: 02 May 2001 23:37:19 +0200 In-Reply-To: <20010429213715.06D613E0B@bazooka.unixfreak.org> Message-ID: Lines: 29 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dima Dorfman writes: > Attached is a patch that adds SHA1 support to the md5(1) program. > Please review. This patch makes sha1(1) a link to md5(1); the same > program was chosen because much of the support code would be > identical. This is also the way OpenBSD implemented it, and it makes > sense, as well as making it easier to add other digest algorithms in > the future (OpenBSD has rmd160, for example). What do we need this for? des@des ~% md5 /boot/kernel/kernel MD5 (/boot/kernel/kernel) = 7092b5c593a287da5d6222ebb9db5d92 des@des ~% which openssl /usr/bin/openssl des@des ~% ln -s $(which openssl) md5 des@des ~% ./md5 /boot/kernel/kernel MD5(/boot/kernel/kernel)= 7092b5c593a287da5d6222ebb9db5d92 des@des ~% ln -s $(which openssl) sha1 des@des ~% ./sha1 /boot/kernel/kernel SHA1(/boot/kernel/kernel)= b584001c125c364c5958efb647d5b56915aa09c9 des@des ~% ln -s $(which openssl) rmd160 des@des ~% ./rmd160 /boot/kernel/kernel RIPEMD160(/boot/kernel/kernel)= eab7dceb96a2492faee5cd3984affc05fe2afc63 The only possible issue is the lack of a space before the equal sign. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message