Skip to content

proposal: add TurboSHAKE and KangarooTwelve#41

Open
panva wants to merge 3 commits intoWICG:mainfrom
panva:turbo-kangaroo
Open

proposal: add TurboSHAKE and KangarooTwelve#41
panva wants to merge 3 commits intoWICG:mainfrom
panva:turbo-kangaroo

Conversation

@panva
Copy link
Collaborator

@panva panva commented Nov 29, 2025

refs #31

cc @emanjon


Preview | Diff

@panva panva requested a review from twiss November 29, 2025 08:31
@panva panva mentioned this pull request Dec 9, 2025
<h4><dfn data-idl id="dfn-TurboShakeParams">TurboShakeParams</dfn> dictionary</h4>
<pre class=idl>
dictionary TurboShakeParams : Algorithm {
required [EnforceRange] unsigned long length;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know I did the same for cSHAKE, but while reviewing this I realized that for the other algorithms in Web Crypto that have a length parameter (AES and HMAC), it refers to the length of the key, rather than the length of the output. Obviously here there's no key so it may be obvious what it means, but maybe it's still clearer to name this outputLength (for TurboShake, KangarooTwelve and cSHAKE)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Obviously here there's no key so it may be obvious what it means, but maybe it's still clearer to name this outputLength (for TurboShake, KangarooTwelve and cSHAKE)?

Sure, that's better. I'll align this one after cSHAKE gets changed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

KMAC too, right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, good catch. For KMAC there's an even stronger argument to renaming it because it has a key length parameter (for generation) too. I've made a PR in #52.

Co-authored-by: Daniel Huigens <d.huigens@protonmail.com>
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.

3 participants