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 IllegalArgumentException upon GCM decryption failure. #362

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

SalusaSecondus
Copy link
Contributor

ACCP can throw an incorrect IllegalArgumentException upon GCM decryption failure when Cipher.doFinal(input, inputOffset, length, output, outputOffset) is used. This is because Arrays.fill() (used to zero out the failed decryption) takes the end index as the third parameter and not the length.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@SalusaSecondus SalusaSecondus requested a review from a team as a code owner February 8, 2024 00:51
Copy link
Contributor

@amirhosv amirhosv left a comment

Choose a reason for hiding this comment

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

Thanks for catching this.

@alexw91 alexw91 merged commit d8f3400 into corretto:main Feb 8, 2024
10 checks passed
@SalusaSecondus SalusaSecondus deleted the gcm_patch branch February 13, 2024 19:34
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