kern/102795: [libmd] {SHA1,RIPEMD160}_Update() produce wrong
results for large buffers
Colin Percival
cperciva at freebsd.org
Mon May 14 04:50:14 UTC 2007
The following reply was made to PR kern/102795; it has been noted by GNATS.
From: Colin Percival <cperciva at freebsd.org>
To: bug-followup at FreeBSD.org, gorshkov.pavel at gmail.com
Cc:
Subject: Re: kern/102795: [libmd] {SHA1,RIPEMD160}_Update() produce wrong
results for large buffers
Date: Sun, 13 May 2007 20:44:25 -0700
Pavel,
Can you still reproduce this? It works fine for me on 6.2-RELEASE:
$ gcc mdtest.c -o sha1test.shared -lmd
$ gcc mdtest.c -o sha1test.static -lmd -static
$ gcc -DDO_RMD mdtest.c -o rmd160test.shared -lmd
$ gcc -DDO_RMD mdtest.c -o rmd160test.static -lmd -static
$ truncate -s 1G testfile
$ ./sha1test.shared testfile
2a492f15396a6768bcbca016993f4b4c8b0b5307
$ ./sha1test.static testfile
2a492f15396a6768bcbca016993f4b4c8b0b5307
$ openssl dgst -sha1 <testfile
2a492f15396a6768bcbca016993f4b4c8b0b5307
$ ./rmd160test.shared testfile
eb712b817a49164045b6c7039409e89764bb2b28
$ ./rmd160test.static testfile
eb712b817a49164045b6c7039409e89764bb2b28
$ openssl dgst -ripemd160 <testfile
eb712b817a49164045b6c7039409e89764bb2b28
Colin Percival
More information about the freebsd-bugs
mailing list