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
Copy file name to clipboardExpand all lines: 1.1/openid-4-verifiable-presentations-1_1.md
+66-1Lines changed: 66 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1419,7 +1419,71 @@ While this shows the payload of the above encrypted Authorization Response examp
1419
1419
Note that for the ECDH JWE algorithms (from Section 4.6 of [@!RFC7518]), the `apu` and `apv` values are inputs
1420
1420
into the key derivation process that is used to derive the content encryption key. Regardless of the algorithm used, the values are always part of the AEAD tag computation so will still be bound to the encrypted response.
1421
1421
1422
-
Note: For encryption, implementers have a variety of options available through JOSE, including the use of Hybrid Public Key Encryption (HPKE) as detailed in [@I-D.ietf-jose-hpke-encrypt].
1422
+
### Encryption using HPKE
1423
+
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]. 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`.
1424
+
1425
+
When the the presentation is invoked via redirects, such as Response Mode such as `direct_post.jwt`, the encoding is as follows:
1426
+
1427
+
```example
1428
+
session_info = ASCII("OpenID4VP-si") ||
1429
+
BYTE(255) ||
1430
+
ASCII(clientId) ||
1431
+
BYTE(255) ||
1432
+
ASCII(nonce) ||
1433
+
BYTE(255) ||
1434
+
ASCII(responseUri)
1435
+
```
1436
+
1437
+
Where:
1438
+
1439
+
-`ASCII("OpenID4VP-si")`: A fixed ASCII string identifying this `session_info` structure.
1440
+
-`BYTE(255)`: In each occurence is a separator byte (0xFF) used to delimit fields.
1441
+
-`ASCII(clientId)`: The `client_id` request parameter, as was passed in the Authorization Request, potentially including the Client Identifier Prefix.
1442
+
-`ASCII(nonce)`: The `nonce` request parameter.
1443
+
-`ASCII(responseUri)`: The `redirect_uri` or `response_uri` request parameter, depending on which is present, as determined by the Response Mode.
1444
+
1445
+
The following is a non-normative example of the `session_info` structure for `direct_post.jwt` response mode:
The `session_info` structure's bytes are used as the value of the `info` parameter when using Integrated Encryption as the Key Management Mode. If the `recipient_structure` is being used then it is used as the value of the `recipient_extra_info` parameter instead.
@@ -3567,5 +3631,6 @@ The technology described in this specification was made available from contribut
3567
3631
3568
3632
-01
3569
3633
3634
+
* Add usage of HPKE for the `info` parameter.
3570
3635
* Add security consideration not to use VP Token as Access Token
3571
3636
* Clarify that `encrypted_response_enc_values_supported` applies only if JWE content encryption algorithm is used; e.g., it does not apply to JOSE HPKE
0 commit comments