Skip to content

Feat/variable hash functions testing#160

Closed
laudiacay wants to merge 5 commits intomultiformats:masterfrom
banyancomputer:feat/variable-hash-functions-testing
Closed

Feat/variable hash functions testing#160
laudiacay wants to merge 5 commits intomultiformats:masterfrom
banyancomputer:feat/variable-hash-functions-testing

Conversation

@laudiacay
Copy link
Contributor

This adds tests, audits errors, and checks over docs to merge this. Also bumps the version.

@laudiacay laudiacay force-pushed the feat/variable-hash-functions-testing branch 3 times, most recently from 0f07b0e to d2d9cdb Compare July 28, 2022 11:37
@laudiacay laudiacay force-pushed the feat/variable-hash-functions-testing branch from b1c4139 to d2d9cdb Compare July 28, 2022 13:15
This makes it possible to register hasher factories that take a size
hint. Such hashers should produce at least the requested number of
bytes, but may:

1. Produce fewer bytes in some cases (e.g., not enough input is available).
2. May produce more bytes (the usual case).

The caller should check the size of the produced digest to determine if
it's sufficient for the caller's use-case (likely truncating it if it's
too large).

NOTE: the convenience `Sum` function will handle size verification and
truncation internally.
@laudiacay laudiacay force-pushed the feat/variable-hash-functions-testing branch from d2d9cdb to 2b07b16 Compare July 28, 2022 13:44
@laudiacay laudiacay force-pushed the feat/variable-hash-functions-testing branch from 2b07b16 to 4f44f4a Compare July 28, 2022 13:47
@laudiacay laudiacay requested a review from aschmahmann July 28, 2022 15:00
@laudiacay laudiacay marked this pull request as ready for review July 28, 2022 15:00
@laudiacay
Copy link
Contributor Author

laudiacay commented Jul 28, 2022 via email

Copy link
Contributor

@Jorropo Jorropo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small details left to solve. 🙂

laudiacay and others added 2 commits August 3, 2022 11:51
Co-authored-by: Jorropo <jorropo.pgm@gmail.com>
Co-authored-by: Jorropo <jorropo.pgm@gmail.com>
@laudiacay laudiacay changed the base branch from feat/variable-hash-functions to master August 3, 2022 15:57
@laudiacay laudiacay force-pushed the feat/variable-hash-functions-testing branch from d62b0eb to c7de973 Compare August 3, 2022 15:59
@laudiacay laudiacay requested a review from Jorropo August 3, 2022 15:59
Copy link
Contributor

@Jorropo Jorropo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (I'll do fixup)

@Jorropo
Copy link
Contributor

Jorropo commented Aug 12, 2022

replaced with #161

@Jorropo Jorropo closed this Aug 12, 2022
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.

4 participants