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

HKDF and PRF traits backed by wolfcrypt #16

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

gasbytes
Copy link
Contributor

@gasbytes gasbytes commented Dec 30, 2024

Added a new HKDF and PRF implementation using HMAC for both SHA-256 and SHA-384 (with associated unit tests).
Consolidated SHA-256 and SHA-384 HMAC implementations into a single WCShaHmac enum, simplifying the code and removing redundant implementations.
Note: Will rebase once #13 is merged.

Working on the integration, will need to make the hmac module generic
to provide the type of hash-mac combination that is being used before
calling the PRF function (so that it supports 256 and 384).
Replace separate SHA HMAC modules with unified enum-based solution
for improved maintainability and type safety.
Completed wolfcrypt PRF (Pseudo random function) backed implementation.
- HKDF module, with unit tests;
- Extended 'new', 'hash_type' and 'hash_len' to the HMAC module, used
  when creating the HMAC object in the hkdf module.
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