Tim_booth
06-18-2007, 08:30 AM
Hello!
I've been developing an implementation of the hash algorithm SHA-1 and I've encoutered a supposed error in my program.
I've used the testing message "0123456701234567012345670123456701234567012345670123456701234567", which is an exact multiple of 512 bits. In the test documente that I've used (here (http://www.faqs.org/rfcs/rfc3174)) the correct message digest is "DE A3 56 A2 CD DD 90 C7 A7 EC ED C5 EB B5 63 93 4F 46 04 52".
So I figured out my implementation had an error, since my message digest is totally diferent.
However, further web resource i've found a litlle program called dpasha (http://dpasha.paehl.qarchive.org/) which gave me the exact message digest that iìve found with my implementation: "e0c094e867ef46c350ef54a7f59dd60bed92ae83".
I would like to know if anyone knows which of the message digest is the correct one, and if it is the first, if possible a file with all the A B C D E buffer values for each t value.
If anyone have the answer to my question please post ASAP, I'm on a tight schedule.
Thanks in advance,
Cheers.
I've been developing an implementation of the hash algorithm SHA-1 and I've encoutered a supposed error in my program.
I've used the testing message "0123456701234567012345670123456701234567012345670123456701234567", which is an exact multiple of 512 bits. In the test documente that I've used (here (http://www.faqs.org/rfcs/rfc3174)) the correct message digest is "DE A3 56 A2 CD DD 90 C7 A7 EC ED C5 EB B5 63 93 4F 46 04 52".
So I figured out my implementation had an error, since my message digest is totally diferent.
However, further web resource i've found a litlle program called dpasha (http://dpasha.paehl.qarchive.org/) which gave me the exact message digest that iìve found with my implementation: "e0c094e867ef46c350ef54a7f59dd60bed92ae83".
I would like to know if anyone knows which of the message digest is the correct one, and if it is the first, if possible a file with all the A B C D E buffer values for each t value.
If anyone have the answer to my question please post ASAP, I'm on a tight schedule.
Thanks in advance,
Cheers.