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 issue with hashing #157

Merged
merged 1 commit into from
Apr 21, 2021
Merged

Conversation

farleyb-amazon
Copy link
Contributor

Description of changes:
A race condition can cause ACCP’s MessageDigest hashing algorithms
to return the same value for different inputs. This patch fixes the
issue, and adds new unit tests for both the hash and hmac code to
prevent regression.

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

A race condition can cause ACCP’s MessageDigest hashing algorithms
to return the same value for different inputs. This patch fixes the
issue, and adds new unit tests for both the hash and hmac code to
prevent regression.
@farleyb-amazon farleyb-amazon merged commit 1503e70 into corretto:develop Apr 21, 2021
@farleyb-amazon farleyb-amazon deleted the hashing-fix branch April 21, 2021 17:35
SalusaSecondus added a commit to SalusaSecondus/amazon-corretto-crypto-provider that referenced this pull request Sep 21, 2021
* develop:
  Support testing against JDK17 (corretto#165)
  Add assumeMinimumVersion to InputBuffer tests (corretto#160)
  Update CHANGELOG for 1.6.1 (corretto#158)
  Fix issue with hashing (corretto#157)
  Improve the README (corretto#155)
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