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

Initial design for export of Merkle-Damgard hash state #1577

Closed
wants to merge 1 commit into from

Conversation

fabrice102
Copy link
Contributor

Description of changes:

This PR provides a building block to implement HMAC with precomputed keys from #1574.

It adds internal functions to export the state of SHA-256 and use such exported state to initialize a SHA-256 context.

Once the design is reviewed and approved, we will similar functions to the other Merkle-Damgard hash functions (MD4, MD5, SHA-1, SHA-2).

Call-outs:

N/A

Testing:

Unit tests added.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@fabrice102 fabrice102 force-pushed the sha-state-access branch 2 times, most recently from 1624920 to 55e790c Compare May 6, 2024 17:02
This commit provides a building block to implement HMAC with precomputed
keys from aws#1574.

It adds internal functions to export the state of SHA-256 and use such
exported state to initialize a SHA-256 context.

Once the design is reviewed and approved, we will similar functions to
the other Merkle-Damgard hash functions (MD4, MD5, SHA-1, SHA-2).
@fabrice102
Copy link
Contributor Author

Closing this PR as it is part of #1574 and #1574 has been updated since then.

@fabrice102 fabrice102 closed this Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants