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

Drop the Algorithm requirement on JWK for direct #12

Closed
wants to merge 1 commit into from

Conversation

puiterwijk
Copy link
Contributor

The Algorithm parameter on the JWK should be the algorithm used in the
key (e.g. A256GCM).
In Direct, the key is used as the Content Encryption key, and not as a
Wrapping key, which means that the Algorithm on the key should be
A256GCM.

The Algorithm parameter on the JWK should be the algorithm used in the
key (e.g. A256GCM).
In Direct, the key is used as the Content Encryption key, and not as a
Wrapping key, which means that the Algorithm on the key should be
A256GCM.
puiterwijk added a commit to fedora-iot/clevis-pin-tpm2 that referenced this pull request Dec 8, 2021
Right now, this must be Dir in order to not crash, but after [1] gets
merged, it will have to be A256GCM.
Since we know the algorithm, let's just ignore it.

[1]: hidekatsu-izuno/josekit-rs#12
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
@hidekatsu-izuno
Copy link
Owner

I don't think your suggestion is appropriate. The DirectJweAlgorithm is intended for "Direct Encryption with a Shared Symmetric Key" (RFC7518 4.5). The alg parameter will always be "dir".

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.

None yet

2 participants