You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Section 8.3.1 says:
Hybrid Public Key Encryption (HPKE) may be used for encrypted responses. If HPKE is used, the alg value MUST be specified according to [[I-D.ietf-jose-hpke-encrypt].
Does this mean that when using HPKE one of the algorithms specified in ietf-jose-hpke-encrypt MUST be used and other HPKE algorithms are not allowed? Or does it mean the algorithm MUST be a HPKE JWE algorithm?
From the discussion today: The group is not sure what the normative effect of this sentence is. Some additional clarity here would be helpful in providing understanding. What changes if this line is removed? Should this be pointing to the IANA registry?
The issue with the current text is that it's not clear what exactly it means, so it's difficult to say what changes if we remove it.
If it means that you must use one of the algorithms from ietf-jose-hpke-encrypt then removing it means you can also use algorithms that are not defined in ietf-jose-hpke-encrypt.
If it means the algorithm MUST be a HPKE JWE algorithm it probably doesn't change anything because it is effectively saying "if you do hpke, you have to use an hpke algorithm."
If it means something else then it depends on what that other meaning is.
Something like this? Hybrid Public Key Encryption (HPKE) may be used for encrypted responses. If HPKE is used, the alg value MUST point to an HPKE algorithm.
How about rewording the whole section a bit (and fixing some typos etc):
Hybrid Public Key Encryption (HPKE) MAY be used for encrypted responses.
If HPKE is used, the Authorization Response MUST be encrypted as a JWE as defined in [@!I-D.ietf-jose-hpke-encrypt], using either the Integrated Encryption or the Key Encryption Key Management Mode.
The JWE alg Header Parameter MUST identify a JWE algorithm that uses HPKE according to the processing rules of [@!I-D.ietf-jose-hpke-encrypt].
This includes the algorithms defined in [@!I-D.ietf-jose-hpke-encrypt] as well as any other such algorithm registered in the IANA "JSON Web Signature and Encryption Algorithms" registry [@IANA.JOSE].
Additionally, a session_info structure MUST be calculated and utilized for encryption and decryption independently by the Wallet and the Verifier.
This ensures that decryption fails closed when the session information needed for verification of the credential is invalid.
The session_info structure is specific to the response modes direct_post.jwt and dc_api.jwt.
When the presentation is invoked via redirects, such as with Response Mode direct_post.jwt, the encoding is as follows:
...
Activity
brentzundel commentedon Aug 20, 2026
From the discussion today: The group is not sure what the normative effect of this sentence is. Some additional clarity here would be helpful in providing understanding. What changes if this line is removed? Should this be pointing to the IANA registry?
martijnharing commentedon Aug 26, 2026
The issue with the current text is that it's not clear what exactly it means, so it's difficult to say what changes if we remove it.
If it means that you must use one of the algorithms from ietf-jose-hpke-encrypt then removing it means you can also use algorithms that are not defined in ietf-jose-hpke-encrypt.
If it means the algorithm MUST be a HPKE JWE algorithm it probably doesn't change anything because it is effectively saying "if you do hpke, you have to use an hpke algorithm."
If it means something else then it depends on what that other meaning is.
dpostnikov commentedon Sep 18, 2026
Something like this?
Hybrid Public Key Encryption (HPKE) may be used for encrypted responses. If HPKE is used, the alg value MUST point to an HPKE algorithm.c2bo commentedon Oct 25, 2026
How about rewording the whole section a bit (and fixing some typos etc):