Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
62b5817
third_party: crypto's canary on /third_party//sodium
Nov 17, 2026
981892e
tools: third_party_test.py's lines fit 100 columns
Nov 17, 2026
ef1cd2f
libs/crypto: secret<N>, and the errors 15 to 20
Nov 17, 2026
bbc83d9
libs/crypto: the capability table, supports_v and the generated refus…
Nov 17, 2026
70c2b12
libs/crypto: the families' defaults are the one source of the default…
Nov 17, 2026
ef9b7ec
guidelines: one default backend per family and target, by a stated re…
Nov 17, 2026
6df4621
libs/crypto: one default per family and target, by a stated reason, a…
Nov 17, 2026
e0e2f79
guidelines: the ARM warning is about a native program that names Bear…
Nov 17, 2026
c90abfc
libs/crypto: the examples and the use cases teach AES-GCM's default, …
Nov 17, 2026
4767d8b
guidelines: the examples link AES-GCM's default with /webcpp/crypto//…
Nov 17, 2026
a0e7ba1
libs/crypto: /webcpp/crypto//gcm-default links AES-GCM's default on e…
Nov 17, 2026
138a206
libs/crypto: Ed25519 and Ed25519ph on libsodium, with the Emscripten …
Nov 17, 2026
396cef3
libs/crypto: X25519 and the Ed25519 to X25519 conversion
Nov 17, 2026
dd31b5f
libs/crypto: threads detection, and heavy operations' variants refuse…
Nov 17, 2026
4a8d1df
libs/crypto: Ed25519ph names webcpp::hash::sha2_512, Ed25519 joins th…
Nov 17, 2026
1a42996
third_party: novifinancial/ed25519-speccheck, the twelve Ed25519 edge…
Nov 17, 2026
f24c9ea
libs/crypto: Ed25519's strict policy, and the twelve edge cases per b…
Nov 17, 2026
7a14603
libs/crypto: Ed25519's edge cases record WebCrypto's versions, and a …
Nov 17, 2026
4eec3ff
libs/crypto: one AEAD template, and the three ChaCha20-Poly1305 AEADs…
Nov 17, 2026
ade3de3
libs/crypto: ChaCha20-Poly1305 on BearSSL and OpenSSL over ciphers::a…
Nov 17, 2026
7fb09e4
libs/crypto: the A2 merge's last commits: the libsodium allocation te…
Nov 18, 2026
d42f927
tools: a compile-diagnostic test declared alone fails on any error it…
Nov 18, 2026
6d1c627
libs/crypto: the A2m Minors: threads refusal and pins, run_heavy's as…
Nov 18, 2026
02b2c9d
libs/crypto: the A2m review's fixes: the heavy stand-in defers to the…
Nov 18, 2026
feb9523
libs/crypto: box, sealed boxes and secretbox on libsodium, with a use…
Nov 18, 2026
78827cb
libs/crypto: libsodium's own suite and WebCrypto's oracle for Ed25519…
Nov 18, 2026
c95c4f6
tools: an own lane's packages, installed with it
Nov 18, 2026
23cf4f6
libs/crypto: the constant-time lane over version 0.1's backends
Nov 18, 2026
a7f7ceb
tools: the lint reads the own lanes' sanitizer and Valgrind headers, …
Nov 18, 2026
caa26eb
libs/crypto: the constant-time lane's review fixes
Nov 18, 2026
fda89a1
libs/crypto: SPKI, PKCS#8 and PEM for Ed25519 and X25519, with the pe…
Nov 18, 2026
ca3ccbd
libs/crypto: PEM's strictness checks pinned on a lenient stand-in, an…
Nov 18, 2026
a1be34c
libs/crypto: crypto_kx on libsodium, and the kx_default fixture of /w…
Nov 18, 2026
8f699ef
tools: crypto's size lane and its collect script, from release builds
Nov 18, 2026
4d48c55
libs/crypto: sizes per (family, backend) cell from the own lane sizes…
Nov 18, 2026
08e3fb0
tools: the sizes of linked programs name their build's date, host and…
Nov 18, 2026
362eb77
libs/crypto: the size baseline is the sized programs' harness, named …
Nov 18, 2026
3e81b9d
libs/crypto: the A3 merge's own suite names box_easy, box_easy2, secr…
Nov 18, 2026
e630382
tools: the ChaCha user-Jamfile fixtures pass clang-tidy: trailing com…
Nov 18, 2026
127a9ae
libs/crypto: the A3 merge's lint fixes: clang-tidy, a Doc Comment's e…
Nov 18, 2026
b7cc466
tools: the ChaCha fixtures' one-row vectors keep their layout, exempt…
Nov 18, 2026
5e17006
libs/crypto: the A3 merge's second lint fixes: the DER prefixes' rows…
Nov 18, 2026
a44f6f7
libs/crypto: the A3 deferred Minors: the threads refusal's order, kx'…
Nov 18, 2026
0244f9f
libs/crypto: the memory option's windows.h twins link libsodium, as t…
Nov 18, 2026
6ba3fa4
libs/crypto: the constant-time lane, over libsodium's code and the ne…
Nov 18, 2026
11edc43
libs/crypto: X25519's agreement under wasmtime, an open finding (gitl…
Nov 18, 2026
792a413
libs/crypto: the constant-time Minors of Task 14 and the documentatio…
Nov 18, 2026
fa70a82
libs/crypto: Task 15's fix round, the lane's coverage generated and t…
Nov 19, 2026
804b409
guidelines: chapter 17's crypto entry records the foundation's accept…
Nov 19, 2026
3abca3f
libs/crypto: the rulebook's text for increment 1 and two documentatio…
Nov 19, 2026
6779d91
tools: crypto's Emscripten fixtures of the messages that hold there: …
Nov 19, 2026
3bb799d
libs/crypto: the final review's fixes: every message tested, libsodiu…
Nov 19, 2026
402bb49
libs/crypto: the final verification's fixes: lint (trailing commas, f…
Nov 19, 2026
d00de25
libs/crypto: dudect under arm64's DIT, checked, and the comparison ta…
Nov 19, 2026
81471c5
guidelines: chapter 17's open crypto finding states its measured caus…
Nov 19, 2026
dd4c309
libs/crypto: X25519's wasip2 finding states its measured cause, the h…
Nov 19, 2026
950d3b8
libs/crypto: the review's fixes to dudect under DIT, dudect_planted a…
Nov 19, 2026
3652716
libs/crypto: dudect's DIT scope stated where the harness is described…
Nov 19, 2026
85a6331
libs/crypto: MSVC fixes from the local MSVC lane: (std::min) in pem.h…
Nov 19, 2026
1fe58fd
libs/crypto: box_sodium_test's NaCl names no longer hide sealed_box's…
Nov 19, 2026
f1f685d
libs/crypto: the throughput table measured again on an idle machine, …
Nov 19, 2026
53c5561
tools: an interrupted OpenSSL build is built again, its build record …
Nov 19, 2026
b64c6f4
tools: an interrupted libdatachannel build is built again, its build …
Nov 19, 2026
17216d3
libs/crypto: x25519.adoc's WebAssembly bullet reflowed, the constant-…
Nov 19, 2026
c00bf7a
tools: the interrupted-build release note within the changelog form's…
Nov 19, 2026
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
27 changes: 25 additions & 2 deletions .github/workflows/library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,17 @@ jobs:
with:
product: ${{ (matrix.library == 'beast' || matrix.library == 'cobalt') && 'chrome' || 'chrome-headless-shell' }}

# The packages the lane needs from apt (its entry's apt, tools/ci/matrix.py's
# OWN_LANE_PACKAGES): crypto's constant-time lane natively has Valgrind, llvm-18 and
# clang-18's sanitizer runtime. The lane runs on the runner, never in the container, so
# they are installed here. A mirror's transient error is retried, and an index that still
# cannot be fetched fails the step, as in the container's image.
- name: Install the lane's packages
if: runner.os == 'Linux' && join(matrix.apt, ' ') != ''
run: |
sudo apt-get -o Acquire::Retries=5 -o APT::Update::Error-Mode=any update
sudo apt-get -o Acquire::Retries=5 install --yes --no-install-recommends ${{ join(matrix.apt, ' ') }}

- name: Build the native Beast interoperability peer
if: matrix.library == 'beast' && (matrix.lane == 'browser' || matrix.lane == 'browser-node')
shell: bash
Expand Down Expand Up @@ -420,13 +431,16 @@ jobs:
if-no-files-found: error
retention-days: 7

# The size tables a lane wrote (webcpp.size-table), kept beyond the job.
# The size tables a lane wrote (webcpp.size-table, webcpp.program-sizes, whose JSON a
# library's generator reads), kept beyond the job.
- name: Upload the lane's size tables
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: sizes-${{ matrix.id || matrix.name }}
path: bin/**/*.sizes.md
path: |
bin/**/*.sizes.md
bin/**/*.sizes.json
if-no-files-found: ignore

- name: Upload OpenSSL upstream test evidence
Expand Down Expand Up @@ -583,6 +597,15 @@ jobs:
with:
libraries: 'false'

# The own lanes' packages (tools/ci/matrix.py lint-packages): the lint analyses their
# programs natively, which include valgrind/memcheck.h and clang-18's sanitizer/ headers.
- name: Install the own lanes' packages
run: |
packages="$(python3 tools/ci/matrix.py lint-packages)"
sudo apt-get -o Acquire::Retries=5 -o APT::Update::Error-Mode=any update
# shellcheck disable=SC2086
sudo apt-get -o Acquire::Retries=5 install --yes --no-install-recommends $packages

# The compilation database is what b2 compiles with its default toolset, the first that
# user-config.jam registers, Clang 18, and, for what only a WASI target or emscripten
# builds, with the toolset of that target: a WASI dry run generates the bindings its
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,7 @@
path = third_party/libs/blake2
url = https://github.com/BLAKE2/BLAKE2.git
shallow = true
[submodule "third_party/libs/ed25519-speccheck"]
path = third_party/libs/ed25519-speccheck
url = https://github.com/novifinancial/ed25519-speccheck.git
shallow = true
9 changes: 5 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,9 @@ Jamroot is its build configuration, and `libs/<name>` is its repository.
- for crypto: nothing installed, with the pinned submodules initialised:
`git submodule update --init third_party/libs/bearssl
third_party/libs/secp256k1 third_party/libs/bitcoin third_party/libs/wycheproof
third_party/libs/bips`, and `third_party/libs/openssl` for its OpenSSL
backend (below); b2 builds every backend from its sources;
third_party/libs/bips third_party/libs/ed25519-speccheck`, and
`third_party/libs/openssl` for its OpenSSL backend (below); b2 builds every
backend from its sources;
- for native Trystero: CMake and Make (nmake on Windows), and the pinned
`third_party/libs/libdatachannel` checkout with its required nested sources.
Initialize it, and the libsecp256k1 every room links, with `git submodule
Expand Down Expand Up @@ -1077,7 +1078,7 @@ webcpp.run <name> : <sources> + : <requirements> * : <targets> * ;
webcpp.run-fail <name> : <sources> + : <requirements> * : <targets> * ;
webcpp.compile <name> : <sources> + : <requirements> * : <targets> * ;
webcpp.compile-fail <name> : <sources> + : <requirements> * : <targets> * ;
webcpp.compile-diagnostic <name> : <sources> + : <requirements> * : <targets> * ;
webcpp.compile-diagnostic <name> : <sources> + : <requirements> * : <targets> * : alone ? ;
webcpp.boost-test <name> : <sources> + : <requirements> * ;
webcpp.example <source> : <requirements> * : <targets> * ;
webcpp.headers-alone <library> : <include-root> : <only> * : <requirements> * : <targets> * ;
Expand All @@ -1095,7 +1096,7 @@ webcpp.source-only <directory> + ; (reference source trees)
| `webcpp.compile` | the sources compile | no program is linked; takes `/webcpp//node-test` for its header |
| `webcpp.compile-fail` | the sources do not compile | left out of clang-tidy; any error passes it, the wrong one included; takes `/webcpp//node-test` for its header |
| `webcpp.link-fail` | the compiled sources fail to link | use a matching successful control to distinguish the intended incompatibility from unrelated failures; the sources remain in clang-tidy |
| `webcpp.compile-diagnostic` | the sources stop with every error they state in clang's `-verify` comments, `// expected-error@<file>:* {{<message>}}` for a header they include or `// expected-error@+1 {{<message>}}` for the next line | compiled with `-Xclang -verify -Xclang -verify-ignore-unexpected=error,note`, so an error not stated and a note are ignored, the cascade that follows a header's `#error` among them; then `tools/compile_diagnostic/check.py` runs the compile again with clang's diagnostic log and fails on any error located in a comment (a `//` one or a `/* */` one over several lines) after an `expected-<kind>` of that comment, which is `-verify`'s own report on a directive it could not read and so dropped (a header it names that cannot be located, a `{{...}}` whose `}}` is not on its line), and on a compile that reports no error at all: each directive clang reads, every one outside a branch the preprocessor skips, must be read whole, the header it names found and included, and its error raised in that header; built on b2's `clang` toolset only (native clang, `clang-wasip2`, `clang-wasip3`) and skipped elsewhere, since `-verify` is clang's: a refusal would turn every gcc and msvc lane red for a declaration that holds; left out of clang-tidy; takes `/webcpp//node-test` for its header |
| `webcpp.compile-diagnostic` | the sources stop with every error they state in clang's `-verify` comments, `// expected-error@<file>:* {{<message>}}` for a header they include or `// expected-error@+1 {{<message>}}` for the next line | compiled with `-Xclang -verify -Xclang -verify-ignore-unexpected=error,note`, so an error not stated and a note are ignored, the cascade that follows a header's `#error` among them; with `alone` last, with `-verify-ignore-unexpected=note`, so the stated errors are the compile's only ones and a refusal meant to be the first and only error fails its test when another error follows it; then `tools/compile_diagnostic/check.py` runs the compile again with clang's diagnostic log and fails on any error located in a comment (a `//` one or a `/* */` one over several lines) after an `expected-<kind>` of that comment, which is `-verify`'s own report on a directive it could not read and so dropped (a header it names that cannot be located, a `{{...}}` whose `}}` is not on its line), and on a compile that reports no error at all: each directive clang reads, every one outside a branch the preprocessor skips, must be read whole, the header it names found and included, and its error raised in that header; built on b2's `clang` toolset only (native clang, `clang-wasip2`, `clang-wasip3`) and skipped elsewhere, since `-verify` is clang's: a refusal would turn every gcc and msvc lane red for a declaration that holds; left out of clang-tidy; takes `/webcpp//node-test` for its header |
| `webcpp.boost-test` | every case of the Boost.Test suite passes | native only, whatever the Jamfile declares; the header-only framework, `tools/boost_test_runner.cpp`, is one object of the suite's, always compiled with exceptions |
| `webcpp.source-only` | | declares child source directories whose original Jamfiles are not WebCPP projects; use in `build.jam` before discovery; it changes neither explicit compilation nor lint |
| `webcpp.example` | the program exits with 0, and its standard output, carriage returns removed, equals `<stem>.expected` beside it | its standard input is `<stem>.input` beside it, else empty, never the terminal, on every target (wasmtime passes it through, and node under `-sNODERAWFS=1`, which `<webcpp-node-raw-fs>off` replaces with NODEFS); run through `testing.launcher` for WASI, and on emscripten with the node on `PATH`, not the one b2's toolset registered, which b2 gives only to its own testing rules, by `tools/example/run_example.py`, which names a failing exit status (or the signal) before the diff; always run again, and `<stem>.input` is a source of the run; links `/webcpp//node-test` on every target (Targets, above) |
Expand Down
Loading
Loading