Skip site navigation (1)Skip section navigation (2)
Date:      02 May 2001 23:37:19 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Dima Dorfman <dima@unixfreak.org>
Cc:        audit@FreeBSD.ORG
Subject:   Re: sha1 support in md5(1)
Message-ID:  <xzp4rv3l9f4.fsf@flood.ping.uio.no>
In-Reply-To: <20010429213715.06D613E0B@bazooka.unixfreak.org>
References:  <20010429213715.06D613E0B@bazooka.unixfreak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Dima Dorfman <dima@unixfreak.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp4rv3l9f4.fsf>