Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

hkdf crypto functions #190

Merged
merged 2 commits into from
Oct 29, 2020
Merged

hkdf crypto functions #190

merged 2 commits into from
Oct 29, 2020

Conversation

kspearrin
Copy link
Member

@kspearrin kspearrin commented Oct 29, 2020

In some upcoming work with Send, I will need to use HKDF to expand a smaller encryption key that is part of the URL to a larger encryption key needed for our AES encryption functions.

Today we have an implementation of HKDF-Expand in our crypto service, but it is rather specific.

This PR creates generic crypto functions for HKDF and HKDF-Expand (web-crypto and node implementation) so that they can be used for other general crypto operations that we may need. The PR also ports the existing HKDF-Expand function in crypto service to use these new generic functions.

As with all crypto functions, unit tests were written to verify the correct implementation.

@kspearrin kspearrin requested a review from a team October 29, 2020 18:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants