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

Direct Encryption Mode: Wording Improvement #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions draft-ietf-cose-hpke.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,10 @@ is a bstr.

### HPKE Direct Encryption Mode {#one-layer}

This mode is selected if COSE_Encrypt0 structure uses a COSE-HPKE algoritm.
This mode applies if the COSE_Encrypt0 structure uses a COSE-HPKE algorithm and has no recipients.

Because there are no recipients, COSE_Encrypt structure MUST NOT be used.

Because COSE-HPKE supports header protection by definition, if 'alg' parameter is present, it MUST be in protected bucket, and SHALL be a COSE-HPKE algorithm.
Because COSE-HPKE supports header protection, if the 'alg' parameter is present, it MUST be included
in the protected header and MUST be a COSE-HPKE algorithm.

Although the use of the 'kid' parameter in COSE_Encrypt0 is
discouraged by RFC 9052, this documents RECOMMENDS the use of the 'kid' parameter
Expand Down