Skip to content

secure: webcpp::secure registered, hash and crypto on it, Cobalt's MSVC frame alignment patched - #59

Merged
pinhopro merged 28 commits into
mainfrom
secure/genesis
Nov 26, 2026
Merged

pinhopro merged 28 commits into
mainfrom
secure/genesis

Conversation

@pinhopro

Copy link
Copy Markdown
Contributor

webcpp::secure joins the superproject, and hash and crypto move onto it.

  • libs/secure: the submodule (../secure.git), with the gitlinks of libs/secure, libs/hash and libs/crypto at their merged mains (secure: genesis (the DIT guard, erase_secret, secret, constant_time_equal, declassify and the constant-time blocks) secure#1, hash: every guard and wipe on webcpp::secure; hash's copies deleted hash#15, crypto: every guard, wipe, erase, comparison, secret and declassify on webcpp::secure, no alias crypto#19).
  • Registration: AGENTS.md's libraries table and layout (secure, and hash's missing row), the 0.1.0 release notes (secure under New Libraries), CODING-GUIDELINES.md chapter 17's secure section as built, crypto's and hash's sections naming secure's guard, erase, comparison and secret.
  • Tools: secure_jamfiles_test, secure_collect_test, secure_dudect_judge_test; the CI's own-lane packages and dudect judge per library (tools/ci/matrix.py, library.yml); the user Jamfile tests copy libs/secure; hash's DIT text in doc_tables.py.
  • A second Boost patch, tools/ci/actions/boost/patches/cobalt-coroutine-align-msvc.patch: Boost.Cobalt 1.92.0 gives MSVC coroutine frames 8 mod 16, which crashes optimised code (found as a 0xC0000005 in hash's async_cobalt on MSVC release); it carries upstream's fix (boostorg/cobalt d67080b) with its effect limited to MSVC, byte-identical elsewhere; the Cobalt provenance tests strip the CI's patches before comparing. The owner approved the first patch explicitly; this one rests on his standing instruction and is named in the guidelines.
  • origin/main merged (hkdf-pieces).

Verified locally before merge: clang 908, gcc-15 713, wasip2 808, wasip3 791, Emscripten 598, clang and Emscripten release, the constant-time lanes, b2 doc, the generators' checks, the tools tests, report.py, macOS and Linux full lint; MSVC 14.3 and 14.5 x64 debug (secure, hash, crypto, cobalt: 858 passed each), MSVC 14.5 arm64 debug for the DIT tests. One CI at the end, on main.

🤖 Generated with Claude Code

R added 28 commits November 24, 2026 13:59
The library's repository is webcpporg/secure, added by the relative URL ../secure.git as every
library's. The recorded commit moves to the library's genesis as it is built.
…and the user Jamfile tests copy libs/secure
… and hash's chapters name its guard, erase, comparison and secret
… hash and crypto on it (9fb33ed, d52c320, 1566153)
…d measurements and secure's is the reference, secure's entry is in its merged form, and AGENTS.md's crypto row no longer names constant_time_equal
… catch inside it (Windows on ARM64), its cost measured again, dudect_blocks measures the blocks inside a guard, and the dudect programs build under MSVC
…coroutine-align-msvc.patch, upstream boostorg/cobalt d67080b), and the Cobalt provenance tests read Boost 1.92.0's headers as released
…balt's frame alignment check, the memory tests' private destructor)
…der before a frame counted in sizeof(coroutine_align_t), std::max_align_t's off MSVC, so every size, offset and alignment there is Boost 1.92.0's), takes upstream d67080b's change to main.hpp's unsized branch, and says how it differs from upstream
… leaves DIT as found while it unwinds the call, and that Windows on ARM64 clears it after the catch
…secure's guard leaves DIT as found (set again when found set and cleared, 1.3 ns), Windows on ARM64 clears DIT after a catch, and crypto's adapter and hash's guard rule agree
…s (path_in_library without substr, the OpenSSL adapter keeps DIT across its catches, the DIT pages on exceptions, the guard page and blocks wording)
…cure's genesis and hash's and crypto's moves onto it (951401a, 9897857, 7b2c776)
@pinhopro
pinhopro merged commit 601de5c into main Nov 26, 2026
2 of 20 checks passed
@pinhopro
pinhopro deleted the secure/genesis branch November 26, 2026 09:01
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