Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Create a new Package to support Chacha20/Poly1035 encryptions/authentication (in JWE format) #37

Closed
baha-ai opened this issue Jul 25, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request priority
Milestone

Comments

@baha-ai
Copy link
Contributor

baha-ai commented Jul 25, 2019

Standard JWE encryption/decryption operations does not support Chacha20 algorithm with Poly1035 authentication.

There are talks to update the JWE spec with this new addition. An IETF draft can be found here:
https://datatracker.ietf.org/doc/draft-amringer-jose-chacha/

The aim of this issue is to create a new package that will support this new JWE spec.

finally, for reference, Aries-rfc has an issue to update its spec using this new format:
decentralized-identity/aries-rfcs#133

A PHP example is found here:
https://github.com/gamringer/php-authcrypt

the task here is to follow the same format in Go

Part of #36

@baha-ai baha-ai changed the title Updated Go-Jose library to support Chacha20/Poly1035 encryptions/authentication Update Go-Jose library to support Chacha20/Poly1035 encryptions/authentication Jul 25, 2019
@troyronda troyronda added the enhancement New feature or request label Jul 25, 2019
@troyronda
Copy link
Contributor

How do we plan to incorporate the modifications of go-jose into this project? Is a fork required or are we able to wrap the go-jose library and contain the modifications into this repository?

@baha-ai
Copy link
Contributor Author

baha-ai commented Jul 25, 2019

How do we plan to incorporate the modifications of go-jose into this project? Is a fork required or are we able to wrap the go-jose library and contain the modifications into this repository?

The changes in Go-Jose are intertwined within the framework, changes are done on a fork (and we can potentially submit a PR to merge the change but we will need the IETF draft to become part of the JWE standard to support the merge).

Hopefully I will push a PR soon to the fork to reflect these changes then we can discuss the action plan (keep the fork, submit a PR to Go-Jose or refactor further to wrap the code but that's unlikely).

@baha-ai baha-ai changed the title Update Go-Jose library to support Chacha20/Poly1035 encryptions/authentication Create a new Package to support Chacha20/Poly1035 encryptions/authentication (in JWE format) Aug 7, 2019
@baha-ai
Copy link
Contributor Author

baha-ai commented Aug 7, 2019

New update to this issue, forking Go-Jose is not suitable, we will instead build our own package that encrypts/decrypts JWE formatted messages using Chacha20/Poly1035 instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request priority
Development

No branches or pull requests

4 participants