NIST has a very long tradition on validation of the algorithms that are approved by the NIST. It is called Cryptographic Algorithm Validation Program (CAVP). On the subpage about hash algorithm page you will find the;
Test Vectors
The test vectors linked below can be used to informally verify the correctness of secure hash algorithm implementations (in FIPS 180-4 and FIPS 202) using the validation systems listed above.
Response files (.rsp): the test vectors are properly formatted in response (.rsp) files. Vendor response files must match this format exactly.
Intermediate results files (.txt): files with intermediate results (.txt) are supplied to help with debugging.
See the README file in each zip file for details.
Download the proper one. The test vector contains, input and output, except the MonteCarlo Test. It provides inner loop information for some selected loops but not the digest!.
Intermediate Values
If you are looking for full intermediate outputs, there is
The easiest way is outputting the exact same output format so that you can compare find the mismatch simply by a diff
tool like kompare
. There you can find the error with high probability.