openid / openid/OpenID4VP

Response Encryption : Why HPKE without JSON envelope

Open
#310 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

make sure there is an extension point
Dominant language
Shell
Stars
112
Forks
38
Avg merge
12d 19h
Merged PRs (30d)
4

Description

The encryption for The Digital Credential Response should be specified in detail to ensure interoperability. Since the API is one-shot and doesn’t allow for negotiation, there should be a single encryption method. Negotiation would lead to privacy leaks.

Why HPKE ?

  • HPKE is format-agnostic, unlike JARM, which is JWT-specific. This means that when used in transmission modes where JWT isn’t appropriate, a different encryption mechanism is needed.
  • JARM requires the transmission of all authenticated information, including APU, and AVP headers. However, there are security benefits in not sending all information and providing it on both sides.
  • The JSON envelope adds complexity that provides little value when HPKE is used.
  • HPKE as a mechanism has support on native platform libraries.
  • In constrained environments like UICC, SE, etc., dealing with JSON structures can be very challenging.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the Digital Credential Response encryption discussion, focusing first on the stated HPKE, JARM, and JSON-envelope tradeoffs. Done means the interoperability requirements and single encryption approach are specified in sufficient detail; no file or test is named in the payload.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
api, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.