Skip to content

third_party: RFC 9180's test vectors (cfrg/draft-irtf-cfrg-hpke) as /third_party//hpke, test data of crypto's HPKE - #66

Merged
pinhopro merged 1 commit into
mainfrom
third_party/hpke-vectors
Dec 4, 2026
Merged

pinhopro merged 1 commit into
mainfrom
third_party/hpke-vectors

Conversation

@pinhopro

@pinhopro pinhopro commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Adds RFC 9180's test vectors as test data for crypto's HPKE (webcpporg/proposals, libraries/crypto/openspec/changes/hpke, rulings B3 and R21). A library's CI checks out webcpp's main, so this has to merge before crypto's HPKE pull request.

  • third_party/libs/hpke: cfrg/draft-irtf-cfrg-hpke at 5f503c5, shallow. Its test-vectors.json is the source of RFC 9180's Appendix A: 128 entries, of which crypto runs the 64 for its suites.
  • /third_party//hpke in third_party/Jamfile, the same shape as /third_party//bips. A test gets the directory through WEBCPP_TEST_HPKE, wasmtime gets it through webcpp.data, and the test runs again when the file changes. A build that needs it without the checkout stops and prints the git submodule update command.
  • tools/test/third_party_test.py: test_hpke_is_pinned and test_hpke_not_checked_out_is_refused.
  • The guidelines' third-party table, AGENTS.md's lists and the 0.1.0 release notes now name it.

Licence: the repository is an IETF Contribution under the IETF Trust's Legal Provisions (BCP 78), and its code components are under the Simplified BSD License. The submodule redistributes nothing.

Before merging, this branch will also move libs/hash to the merge of webcpporg/hash#20 (max and min in parentheses), which HPKE's headers need on MSVC.

Verified locally:

  • third_party_test.py: test_hpke_is_pinned, test_hpke_not_checked_out_is_refused and test_ed25519_speccheck_not_checked_out_is_refused pass.
  • crypto's HPKE vector tests read the file on native (clang, gcc-15), wasip2, wasip3, Emscripten and MSVC 14.3/14.5.
  • macOS lint and Linux lint: clean.

🤖 Generated with Claude Code

…503c5) as /third_party//hpke, test data of crypto's HPKE

The CFRG's test-vectors.json, Appendix A's source, pinned shallow as
third_party/libs/hpke: /third_party//hpke gives a test its directory by
WEBCPP_TEST_HPKE, wasmtime is given it on WASI, and a test runs again when
the file changes. A build that names it without the checkout stops with the
command that checks it out. The repository is an IETF Contribution under the
IETF Trust's Legal Provisions (code components under the Simplified BSD
License); the submodule redistributes nothing.

The pin and the refusal are tested in tools/test/third_party_test.py; the
guidelines' third-party table, AGENTS.md's lists and the release notes name
it.
@pinhopro
pinhopro merged commit 32a0c06 into main Dec 4, 2026
119 of 193 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