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

fix XOF length #40

Merged
merged 1 commit into from
Jul 22, 2024
Merged

fix XOF length #40

merged 1 commit into from
Jul 22, 2024

Conversation

GiacomoPope
Copy link
Owner

Currently we use hashlib for the shake_* implementations. The current hashlib API does not allow for a byte steam from shake_* making the design of an XOF complicated.

Following https://cryptojedi.org/papers/terminate-20230516.pdf we therefore set the number of bytes to request at 5 blocks (840 bytes) as a fixed number and know that if we do get a crash for whatever reason, we also get a free dinner:

Screenshot 2024-07-22 at 11 02 33 AM

Fixes #22

@GiacomoPope GiacomoPope marked this pull request as ready for review July 22, 2024 10:03
@GiacomoPope GiacomoPope merged commit 3e27a32 into main Jul 22, 2024
5 checks passed
@GiacomoPope GiacomoPope deleted the XOF-bytes branch July 22, 2024 10:06
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.

XOF should be infinitely callable
1 participant