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 ECDH-ES JWE Algorithm Provider #23928

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

justin-tay
Copy link
Contributor

Closes #23597

This adds support for the ECDH-ES, ECDH-ES+A128KW, ECDH-ES+A192KW and ECDH-ES+A256KW JWE algorithms.

This required changes to the JWEAlgorithmProvider interface.

For decoding the CEK the following parameters were needed

  • The JWE Header in order to get the alg, enc, epk, apu and apv attributes
  • The JWE Encryption Provider in order to determine the CEK length if ECDH-ES is used

For encoding the CEK the following parameters were needed

  • The JWE Header Builder in order to get the alg, enc, apu and apv attributes and set the epk, apu and apv attributes

This also required changes to the JWEHeader to add the epk, apu and apv attributes and to make it mutable via a builder.

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.

Support ECDH-ES JWE algorithms
2 participants