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

Add support for low level JWE functions #132

Merged
merged 8 commits into from
Oct 1, 2020

Conversation

oed
Copy link
Contributor

@oed oed commented Sep 13, 2020

This PR adds support for low level JWE creation and decryption using the XChacha20Poly1305 symmetric cipher and asymmetric cipher using x25519 key exchange. It also includes a minimal implementation of the concatKDF. All crypto is implemented using the @stablelib packages.

Test vectors where generated using the jose-chacha library.

In addition all reliance on Buffer is removed from the library.

@oed oed force-pushed the feat/jwe branch 2 times, most recently from 7cb3bdf to 9493d7d Compare September 17, 2020 08:19
@oed
Copy link
Contributor Author

oed commented Sep 30, 2020

Merged master into this branch, so should be mergeable now.

Copy link
Member

@mirceanis mirceanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks great. Thanks for this contrib.

I can imagine a few lines of work that are opened up now that the basis for JWE is here.
I'll ask for your review when needed :)

@mirceanis mirceanis merged commit dc4e78b into decentralized-identity:master Oct 1, 2020
@oed
Copy link
Contributor Author

oed commented Oct 1, 2020

Thank you very much @mirceanis! Looking forward to future updates :)

uport-automation-bot pushed a commit that referenced this pull request Oct 1, 2020
# [4.6.0](4.5.1...4.6.0) (2020-10-01)

### Features

* add support for low level JWE functions ([#132](#132)) ([dc4e78b](dc4e78b))
@uport-automation-bot
Copy link
Collaborator

🎉 This PR is included in version 4.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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