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 ArrayIndexOutOfBoundsException when no space needed #369

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

SalusaSecondus
Copy link
Contributor

ACCP incorrectly rejects GCM decryption when no output space is needed and is not provided. ACCP does correctly handle the case when the output buffer is an empty array but fails if the array is not empty. This change fixes this behavior and brings it into agreement with the default GCM implementation provided by the JDK.

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 March 11, 2024 16:47
geedo0
geedo0 previously approved these changes Mar 12, 2024
amirhosv
amirhosv previously approved these changes Mar 12, 2024
@SalusaSecondus
Copy link
Contributor Author

Rebased the changes.

@geedo0 geedo0 merged commit 3ffcbf4 into corretto:main Mar 13, 2024
10 checks passed
@SalusaSecondus SalusaSecondus deleted the gcmbuffertest branch March 13, 2024 18:53
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