OpenCores
Issue List
Wrong test vectors #2
Open fornax opened this issue about 8 years ago
fornax commented about 8 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 6 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 about 6 years ago

it works,thank you!

NULL commented about 3 years ago

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

NULL commented almost 3 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