Skip to content

Move Argon2 memory size exponent check to PGPPBEEncryptedData.checkPa… - #2322

Closed
vanitasvitae wants to merge 1 commit into
bcgit:mainfrom
pgpainless:improveArgon2ParameterCheck
Closed

Move Argon2 memory size exponent check to PGPPBEEncryptedData.checkPa…#2322
vanitasvitae wants to merge 1 commit into
bcgit:mainfrom
pgpainless:improveArgon2ParameterCheck

Conversation

@vanitasvitae

Copy link
Copy Markdown
Contributor

…rameterBounds()

This moves the parameter validation out of the packet parsing step into the decryption step.
The exception changed from an IOException to PGPException

Relates to #2283

…rameterBounds()

This moves the parameter validation out of the packet parsing step into
the decryption step.
The exception changed from an IOException to PGPException
@ligefeiBouncycastle
ligefeiBouncycastle self-requested a review June 12, 2026 00:43
@dghgit

dghgit commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Thanks for the patch. Merged with minor revisions. Now on https://www.bouncycastle.org/betas

@dghgit dghgit closed this Jun 12, 2026
hubot pushed a commit that referenced this pull request Jun 12, 2026
…hrase so the secret key decryption path is also covered, relates to github #2283 and PR #2322.
hubot pushed a commit that referenced this pull request Jun 12, 2026
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