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

Provide more flexible JWK parsing #370

Merged
merged 5 commits into from
Sep 12, 2023
Merged

Provide more flexible JWK parsing #370

merged 5 commits into from
Sep 12, 2023

Conversation

bifurcation
Copy link
Contributor

Currently, JWK import requires the caller to specify the cipher suite for the key. This is not always known. This PR introduces a PublicJWK class that provides more fulsome JWK parsing, including capturing the alg and kid parameters.

@bifurcation bifurcation marked this pull request as ready for review September 11, 2023 01:31
Copy link
Contributor

@glhewett glhewett left a comment

Choose a reason for hiding this comment

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

Looks good to me. I have one comment that requires review.

I also see in this PR and in other places the comparison of json string to provide equality between to objects (Credential or Keys). The way that we are using the objects, I don't think there is an issue, but there is the case that attributes from a json string can change order and break the equality erroneously. It might not be a real case, but I want to note it.

include/mls/crypto.h Outdated Show resolved Hide resolved
include/mls/credential.h Show resolved Hide resolved
lib/hpke/src/userinfo_vc.cpp Show resolved Hide resolved
src/credential.cpp Show resolved Hide resolved
@bifurcation bifurcation merged commit c6de4ca into main Sep 12, 2023
9 of 10 checks passed
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