OpenCores
Issue List
Wrong test vectors #2
Open fornax opened this issue over 7 years ago
fornax commented over 7 years ago

I noticed that when I put the test strings (The quick brown fox...) in test_keccak.v through a standard SHA3-512, the result is different than the expected value in the test bench for all 3 lengths. Is there any particular reason for that? Thanks.

capella commented over 5 years ago

This core is for Keccak-512 not for sha3-512. The algorithm is the same, but some constants change. If you like to have sha3-512, change padder1.v to:

0: out = 32'd100663296; 1: out = {in31:24, 24'd393216}; 2: out = {in31:16, 16'd1536}; 3: out = {in31:8, 8'd6};

Frost22 commented over 5 years ago

it works,thank you!

NULL commented over 2 years ago

Can anybody send me the corrected code, since the source code not generating the correct hash output.

NULL commented about 2 years ago

Hi, Can anybody send me the code for SHA 3-512?. The code available here is not generating the correct hash code. I have compared the hash results with matlab code and some online websites but the output is not matching. Kindly someone help to get correct hash code. I have tried the two ways provided by others in this Issue List but those suggestions not working.

Thank you in advance.


Assignee
No one
Labels
Bug