Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hash functions: add tests to verify output against test vectors #3

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

cyphar
Copy link
Contributor

@cyphar cyphar commented Jun 5, 2023

A bug was discovered in the sha256 hash functions provided by this library (see #4) but the mistake was not caught for a long time because no tests were run using known test vectors.

The test vectors used in this commit are from publicly available and well-respected sources (NIST and the original author of ripe-md).

You can run the tests with "make check".

A bug was discovered in the sha256 hash functions provided by this
library but the mistake was not caught for a long time because no tests
were run using known test vectors.

The test vectors used in this commit are from publicly available and
well-respected sources (NIST and the original author of ripe-md).

You can run the tests with "make check".

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
@archiecobbs archiecobbs merged commit 48d9e0b into archiecobbs:master Jun 5, 2023
@cyphar cyphar deleted the hashing-test-vectors branch June 6, 2023 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants