[91207] in Cypherpunks

home help back first fref pref prev next nref lref last post

Re: Digital Signatures

daemon@ATHENA.MIT.EDU (Adam Back)
Mon Dec 1 20:55:27 1997

Date: Tue, 2 Dec 1997 01:01:45 GMT
From: Adam Back <aba@dcs.ex.ac.uk>
To: cypherpunks@cyberpass.net
In-reply-to: <fbbcab88ba06fee2a7cfdfe70620c8e5@anon.efga.org> (message from
	Anonymous on Sun, 30 Nov 1997 23:12:52 -0500)
Reply-To: Adam Back <aba@dcs.ex.ac.uk>


Anonymous writes:
> > You also need to be able to compute SHA1 hashes.  I've been using
> > something called "sha1file" which, I believe, originated at Adam
> > Back's web site.
> 
> That program has a bug.  The routine SHA1_update in the file sha1.c
> is missing a line:
> 
>    while ( ctx->mlen == 64 )
>    {
>       convert_to_bigendian( (word32*)ctx->M, 64 );
>       SHA1_transform( ctx );
>       use = min( 64, data_len );
>       memcpy( ctx->M, data, use );
>       ctx->mlen = use;
>       data_len -= use;
> ***   data += use;  ***  MISSING  ***
>    }
> 
> Correcting this will make your hashes be correct.

The version on my web pages for the last couple of versions has this
bug fixed.  http://www.dcs.ex.ac.uk/~aba/eternity/sha1.tgz

Adam
-- 
Now officially an EAR violation...
Have *you* exported RSA today? --> http://www.dcs.ex.ac.uk/~aba/rsa/

print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`


home help back first fref pref prev next nref lref last post