Skip to content

crypto: hpke is implementing: rulings R13 to R26, the plan, as built - #41

Merged
pinhopro merged 2 commits into
mainfrom
crypto/hpke
Dec 4, 2026
Merged

pinhopro merged 2 commits into
mainfrom
crypto/hpke

Conversation

@pinhopro

@pinhopro pinhopro commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Records crypto's HPKE (RFC 9180) as built. The change libraries/crypto/openspec/changes/hpke moves to implementing.

  • design.md: rulings R13 to R26, made while building, where the design left a choice open or met a fact it had not foreseen:

    • R13: the asynchronous forms take one pack.
    • R14: the encapsulated key has a zero value.
    • R15: where the backends' tags live.
    • R16: how the catch-alls are tested.
    • R17: the export length's message is the only error.
    • R18: the counting test runs on libsodium and BearSSL.
    • R19: OpenSSL refuses an empty plaintext.
    • R20: two vector programs.
    • R21: the order of the pull requests.
    • R22: the constant-time paths use a secret seed.
    • R23: the message tests.
    • R24: the changelog stays at ten lines.
    • R25: hash's max and min under a bare <windows.h>.
    • R26: no fuzz target.

    The design also gains an "As built" section with the local verification.

  • reference/plan.md: the plan with its code; tasks.md: every task ticked except the delivery.

  • .openspec.yaml: implementing, linked to webcpporg/crypto.

The implementation lands in this order:

  1. hash: max and min in parentheses in every header, so a bare <windows.h> before them compiles hash#20.
  2. third_party: RFC 9180's test vectors (cfrg/draft-irtf-cfrg-hpke) as /third_party//hpke, test data of crypto's HPKE webcpp#66 (the vectors and the hash gitlink).
  3. webcpporg/crypto, branch crypto/hpke.
  4. The superproject's gitlink of crypto.

tools/proposals.py check passes (45 proposals, 0 problems).

🤖 Generated with Claude Code

R added 2 commits December 4, 2026 05:41
… the plan, tasks ticked

Built on crypto's branch crypto/hpke, the test vectors and hash's fix on the
superproject's third_party/hpke-vectors (R21, R25). The rulings settle what the
design left open or did not foresee: the asynchronous forms' one pack (R13), the
encapsulated key's zero value (R14), where the backends' tags live (R15), the
catch-alls' test (R16), the export length's lone message (R17), the counting
test's backends (R18), OpenSSL's empty-plaintext limit (R19), the two vector
programs (R20), the order of the pull requests (R21), the constant-time paths'
seed (R22), the message tests (R23), the changelog's ten lines (R24), hash's max
and min under a bare windows.h (R25) and no fuzz target (R26).
@pinhopro
pinhopro merged commit 6f803e6 into main Dec 4, 2026
2 checks passed
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.

1 participant