Skip to content

Allow Kangaroo doFinal after doOutput - #2409

Closed
tonywasher wants to merge 1 commit into
bcgit:mainfrom
tonywasher:KangarooFinalAfterOutput
Closed

Allow Kangaroo doFinal after doOutput#2409
tonywasher wants to merge 1 commit into
bcgit:mainfrom
tonywasher:KangarooFinalAfterOutput

Conversation

@tonywasher

Copy link
Copy Markdown
Contributor

The Kangaroo doFinal call performs a check to ensure that it is not already squeezing, and throws an exception if it is already squeezing. However multiple doOutput calls followed by a doFinal is a valid sequence and is supported on all other Xof models (SHAKE/Blake3/Ascon).

The check is redundant and should be deleted.

@dghgit

dghgit commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR, now merged with revisions. Update is on https://www.bouncycastle.org/betas - source changes should appear on github shortly.

@dghgit dghgit closed this Aug 27, 2026
hubot pushed a commit that referenced this pull request Aug 27, 2026
…zing() now records that it has run, so repeated doOutput() and doFinal() after doOutput() work, incorporating the doFinal() guard removal from github PR #2409, relates to github #2409.
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