Skip to content

hash: every key derivation defaults to backends::hash2; retire the measure lane and tools/hash/measure.py - #26

Merged
pinhopro merged 1 commit into
mainfrom
hash/defaults-hash2
Nov 16, 2026
Merged

pinhopro merged 1 commit into
mainfrom
hash/defaults-hash2

Conversation

@pinhopro

Copy link
Copy Markdown
Contributor

Records the new libs/hash (webcpporg/hash#4, 3c9505a) for the owner's decisions of 2026-11-16 (webcpporg/proposals#17, design D33): backends::hash2 is every key derivation's default, backends::sodium argon2id's and scrypt's; no measurement or define decides a default.

  • tools/hash/doc_tables.py now renders libs/hash/doc/backends.adoc and measurements.adoc (the reference measured on 2026-11-16, which decides nothing), and its check, run at every doc build, fails on a hand edit of measurements.json (digest) or a function without a default. Its test covers both.
  • Removed: tools/hash/measure.py and tools/test/hash_measure_test.py; the Own lane (hash, measure) setup in tools/ci/matrix.py (EVERY_TARGET_LANES) and its test; the lint's handling of a native lane's WebAssembly commands (compile_commands.py), which only that lane used, and its test; the hash_jamfiles fixtures of the removed profile and override messages. Added the fixtures of argon2id_default_not_linked and scrypt_default_not_linked.
  • doc/releases/0.1.0.adoc drops the measure lane's lines.
  • webcpp::crypto is unchanged; the wasi-sdk setup is untouched. This PR is independent of tools: one platform-independent wasi-sysroot on every host, OpenSSL's fixed prefix, and release-only tables #25 (tools/wasi-sysroot), based on origin/main.

Verified locally: libs/hash test and example from scratch on native, wasip2, wasip3, emscripten and gcc-15; libs/crypto native; hash_jamfiles_test, hash_jamfiles_format_test, hash_doc_tables_test, matrix_test, lint_test, actions_test, environment_test, shipped_sources_test and release_test; full lint clean (1037 translation units); b2 -a doc and b2 site.

🤖 Generated with Claude Code

… and tools/hash/measure.py are retired

The owner's decisions of 2026-11-16 (libs/hash at 3c9505a). tools/hash/doc_tables.py renders
hash's backends.adoc and measurements.adoc, the reference measured on 2026-11-16, and fails on a
hand edit of its data or a function without a default; tools/hash/measure.py and its test are
removed, with the CI's setup of an own lane that builds every target and the lint's handling of
its WebAssembly commands, which only hash's measure lane used. The fixtures of the removed
profile and override messages go; argon2id_default_not_linked and scrypt_default_not_linked come.
@pinhopro
pinhopro merged commit d673d92 into main Nov 16, 2026
86 of 176 checks passed
pinhopro pushed a commit that referenced this pull request Nov 16, 2026
main (#26) retired tools/hash/measure.py and its test, whose docstring this branch had reflowed; the test goes, as main says.
@pinhopro
pinhopro deleted the hash/defaults-hash2 branch November 17, 2026 04:05
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