Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Fix bits length of Shake 128 (16 not 32) & 256 (32 not 64)#44

Open
vorburger wants to merge 1 commit intomultiformats:mastermultiformats/java-multihash:masterfrom
vorburger:fix-shakevorburger/java-multihash:fix-shakeCopy head branch name to clipboard
Open

Fix bits length of Shake 128 (16 not 32) & 256 (32 not 64)#44
vorburger wants to merge 1 commit intomultiformats:mastermultiformats/java-multihash:masterfrom
vorburger:fix-shakevorburger/java-multihash:fix-shakeCopy head branch name to clipboard

Conversation

@vorburger
Copy link
Contributor

@ianopolous @mk868 does this seem better to you as well? (Or am I just confused?)

@odisseus
Copy link
Contributor

odisseus commented Jan 4, 2025

These are extendable-output algorithms that can produce hashes of any length. As far as I understand, the outputs of SHAKE128 and SHAKE256 do indeed have just 16 and 32 bytes of entropy, but nothing prevents you from generating a SHAKE128 hash that's 1000 bytes long.

That said, it looks like this library doesn't support hashes of variable length (see #45).

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.