From eeaa23e721e11456940408bcb498474ab003a0b6 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 00:33:25 -0300 Subject: [PATCH 1/8] tools: crypto's Jamfile fixtures build the AES block cipher on its default, /webcpp/crypto//aes_block-default --- .../crypto_jamfiles/aes_block_default/Jamfile | 9 +++++ .../aes_block_default.outcome | 20 ++++++++++ .../crypto_jamfiles/aes_block_default/app.cpp | 37 +++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 tools/test/fixtures/crypto_jamfiles/aes_block_default/Jamfile create mode 100644 tools/test/fixtures/crypto_jamfiles/aes_block_default/aes_block_default.outcome create mode 100644 tools/test/fixtures/crypto_jamfiles/aes_block_default/app.cpp diff --git a/tools/test/fixtures/crypto_jamfiles/aes_block_default/Jamfile b/tools/test/fixtures/crypto_jamfiles/aes_block_default/Jamfile new file mode 100644 index 0000000..c3252fd --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/aes_block_default/Jamfile @@ -0,0 +1,9 @@ +# Copyright (c) 2026 WebCpp.org +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# https://www.boost.org/LICENSE_1_0.txt) + +# tag::jamfile[] +exe app : app.cpp /webcpp/crypto//crypto /webcpp/crypto//aes_block-default ; +# end::jamfile[] diff --git a/tools/test/fixtures/crypto_jamfiles/aes_block_default/aes_block_default.outcome b/tools/test/fixtures/crypto_jamfiles/aes_block_default/aes_block_default.outcome new file mode 100644 index 0000000..d57d126 --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/aes_block_default/aes_block_default.outcome @@ -0,0 +1,20 @@ +# Copyright (c) 2026 WebCpp.org +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# https://www.boost.org/LICENSE_1_0.txt) + +[all] +targets: native wasip2 wasip3 emscripten +build: succeeds +run: app +# tag::output[] +[native] +aes256 ok backend=openssl +[wasip2] +aes256 ok backend=ctaes +[wasip3] +aes256 ok backend=ctaes +[emscripten] +aes256 ok backend=ctaes +# end::output[] diff --git a/tools/test/fixtures/crypto_jamfiles/aes_block_default/app.cpp b/tools/test/fixtures/crypto_jamfiles/aes_block_default/app.cpp new file mode 100644 index 0000000..02a1fdb --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/aes_block_default/app.cpp @@ -0,0 +1,37 @@ +// Copyright (c) 2026 WebCpp.org +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE_1_0.txt or copy at +// https://www.boost.org/LICENSE_1_0.txt) + +// Encrypts the FIPS-197 appendix C.3 block with AES-256 on the block cipher's default backend, +// checks it, decrypts it again, and prints the backend that ran. +#include + +#include +#include +#include +#include + +int main() { + std::array key{}; + for (std::size_t i = 0; i < key.size(); ++i) { + key[i] = static_cast(i); + } + std::array const plain{ + 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, + 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, + }; + std::array const expected{ + 0x8e, 0xa2, 0xb7, 0xca, 0x51, 0x67, 0x45, 0xbf, + 0xea, 0xfc, 0x49, 0x90, 0x4b, 0x49, 0x60, 0x89, + }; + std::array block = plain; + auto aes = webcpp::crypto::ciphers::aes256<>::make(key); + bool const ok = + aes && aes->encrypt(block) && block == expected && aes->decrypt(block) && block == plain; + auto const name = webcpp::crypto::ciphers::aes256<>::backend_type::name; + std::printf("aes256 %s backend=%.*s\n", ok ? "ok" : "FAILED", static_cast(name.size()), + name.data()); + return ok ? 0 : 1; +} From 1a6605628c0cc89bbe79ee4168ac27623ee34d91 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 00:38:29 -0300 Subject: [PATCH 2/8] tools: crypto's Jamfile fixtures stop an Emscripten program that uses the AES block cipher's default without linking ctaes --- .../Jamfile | 9 +++++++++ ...ock_default_not_linked_on_emscripten.outcome | 16 ++++++++++++++++ .../app.cpp | 17 +++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/Jamfile create mode 100644 tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/aes_block_default_not_linked_on_emscripten.outcome create mode 100644 tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/app.cpp diff --git a/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/Jamfile b/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/Jamfile new file mode 100644 index 0000000..4b12ef4 --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/Jamfile @@ -0,0 +1,9 @@ +# Copyright (c) 2026 WebCpp.org +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# https://www.boost.org/LICENSE_1_0.txt) + +# tag::jamfile[] +exe app : app.cpp /webcpp/crypto//crypto ; +# end::jamfile[] diff --git a/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/aes_block_default_not_linked_on_emscripten.outcome b/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/aes_block_default_not_linked_on_emscripten.outcome new file mode 100644 index 0000000..46742c4 --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/aes_block_default_not_linked_on_emscripten.outcome @@ -0,0 +1,16 @@ +# Copyright (c) 2026 WebCpp.org +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# https://www.boost.org/LICENSE_1_0.txt) + +# The compiler's line of the refusal starts with the header's path on the machine, so the +# message is a contains: line. On wasip2 and wasip3, where OpenSSL has the block cipher too, the +# message names it as well (test/messages/aes_block_default_not_linked_wasm); compile-diagnostic +# is clang's and skips Emscripten, so this fixture is the Emscripten one. +[all] +targets: emscripten +build: fails +# tag::messages[] +contains: webcpp::crypto: AES block cipher's default backend on this target is ctaes, which is not linked, and the one backend that has it there. Add /webcpp/crypto//aes_block-default, the default's library on every target, to the program's Jamfile, as in: exe app : app.cpp /webcpp/crypto//crypto /webcpp/crypto//aes_block-default ; (without b2: define WEBCPP_CRYPTO_HAS_CTAES=1 and link ctaes.c with webcpp's src/canary_ctaes.c) +# end::messages[] diff --git a/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/app.cpp b/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/app.cpp new file mode 100644 index 0000000..97e1799 --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/app.cpp @@ -0,0 +1,17 @@ +// Copyright (c) 2026 WebCpp.org +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE_1_0.txt or copy at +// https://www.boost.org/LICENSE_1_0.txt) + +// A program that uses the AES block cipher's default backend, which on WebAssembly is ctaes, and +// links none. +#include + +#include +#include + +int main() { + std::array const key{}; + return webcpp::crypto::ciphers::aes256<>::make(key) ? 0 : 1; +} From 0cf5952fa0cb5047bbe59fc8cac26356f5e7a9cf Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 02:27:24 -0300 Subject: [PATCH 3/8] ci: crypto's constant-time lane runs dudect's judge after the lane --- .github/workflows/library.yml | 22 +++ doc/releases/0.1.0.adoc | 1 + tools/test/crypto_dudect_judge_test.py | 180 +++++++++++++++++++++++++ 3 files changed, 203 insertions(+) create mode 100644 tools/test/crypto_dudect_judge_test.py diff --git a/.github/workflows/library.yml b/.github/workflows/library.yml index f47f9d0..b21d924 100644 --- a/.github/workflows/library.yml +++ b/.github/workflows/library.yml @@ -409,12 +409,34 @@ jobs: job: own-${{ matrix.id || matrix.name }} # It registers its toolset in .local/user-config.jam, prints its b2 command and runs it. + # crypto's constant-time lane on wasip2 runs dudect_sodium and dudect_secp256k1 under + # wasmtime for minutes, near or past the launcher's default bound of 600 s, so it gets 1800 + # (run.sh rejects an empty value, so the fallback is the default). - name: Own lane id: lane env: LANE: ${{ toJSON(matrix) }} + WEBCPP_WASIP2_TEST_TIMEOUT: ${{ (matrix.library == 'crypto' && matrix.lane == 'constant-time') && '1800' || '600' }} run: python3 tools/ci/matrix.py own-lane "$LANE" + # crypto's constant-time lane: every dudect output printed, a warning for every |t| of 10 + # or more, and on a runner GitHub hosts a case over 10 measured again in two fresh + # processes, failing when two of the three exceed 10 (libs/crypto's change api-gaps, D7). + # The launcher's bound is the lane's, so a run of the judge's own lasts at most that, and + # the judge's subprocess timeout (2400 s) lies beyond it. + - name: Judge dudect + if: always() && matrix.library == 'crypto' && matrix.lane == 'constant-time' + env: + WEBCPP_WASIP2_TEST_TIMEOUT: ${{ (matrix.library == 'crypto' && matrix.lane == 'constant-time') && '1800' || '600' }} + TARGET: ${{ matrix.platform }} + RERUN: ${{ runner.environment == 'github-hosted' && '--rerun' || '' }} + shell: bash + run: | + # RERUN is empty off the hosted runners, so it is left unquoted to vanish. + # shellcheck disable=SC2086 + python3 libs/crypto/test/constant_time/dudect_judge.py --bin bin \ + --target "$TARGET" $RERUN --launcher tools/boost/asio-wasip2/run.sh + - name: Save the third-party builds if: ${{ !cancelled() && !startsWith(matrix.lane, 'openssl-upstream') }} uses: ./tools/ci/actions/third-party diff --git a/doc/releases/0.1.0.adoc b/doc/releases/0.1.0.adoc index 69f7553..f1a1335 100644 --- a/doc/releases/0.1.0.adoc +++ b/doc/releases/0.1.0.adoc @@ -77,6 +77,7 @@ None. * Improved lint preparation by separating OpenSSL headers from archive builds and upstream tests. * Changed the CI's lint to twelve shards, which a slow runner no longer takes past its time limit. * Added the user's Jamfiles of webcpp::crypto, tested as fixtures of a test of the tools. +* Added a judge to crypto's constant-time lane: dudect results warn at 10, and hosted runners fail on two of three. * Added same-as: to crypto's user Jamfiles test, which keeps copied programs identical. * Added not-contains: to crypto's user Jamfiles test, which shows the canary is a library's only link error. * Added tests of a missing /third_party// name, of the BIPs' pin and of Emscripten without a crypto backend. diff --git a/tools/test/crypto_dudect_judge_test.py b/tools/test/crypto_dudect_judge_test.py new file mode 100644 index 0000000..9a50e65 --- /dev/null +++ b/tools/test/crypto_dudect_judge_test.py @@ -0,0 +1,180 @@ +#!/usr/bin/env python3 +# Copyright (c) 2026 WebCpp.org +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# https://www.boost.org/LICENSE_1_0.txt) + +"""Checks libs/crypto/test/constant_time/dudect_judge.py, the CI's judge of dudect's outputs, with +scratch outputs and fake programs: it prints each output in a group and warns for every case whose +|t| is 10 or more, the planted program and the harness's test excepted; with --rerun it measures +each judged case over 10 again in two fresh processes and fails exactly when two of the three +values are 10 or more, naming them; it never reruns a case that is not judged; it refuses an +output with no case line; and on wasip2 it runs the program through the launcher. Run with the +names of some cases to run only those.""" + +from __future__ import annotations + +import shlex +import subprocess +import sys +import tempfile +from collections.abc import Callable +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[2] +JUDGE = ROOT / 'libs/crypto/test/constant_time/dudect_judge.py' + +FAKE = '''#!/usr/bin/env python3 +import sys +from pathlib import Path +answers = {answers!r} +counter = Path(sys.argv[0] + '.count') +done = int(counter.read_text()) if counter.exists() else 0 +counter.write_text(str(done + 1)) +assert sys.argv[1:] == ['--case', {case!r}], sys.argv +print('dudect case={case} t=' + answers[done] + ' threshold=10 judged=yes') +''' + +LAUNCHER = '''#!/usr/bin/env python3 +import sys +from pathlib import Path +Path({log!r}).write_text(' '.join(sys.argv[1:])) +print('dudect case={case} t=1.00 threshold=10 judged=yes') +''' + + +def run_judge(*args: str) -> subprocess.CompletedProcess[str]: + return subprocess.run([sys.executable, str(JUDGE), *args], capture_output=True, text=True, + check=False, timeout=120) + + +def write_output(directory: Path, name: str, text: str, suffix: str = '') -> Path: + """bin//.output holding text and the lane's exit line.""" + where = directory / f'{name}.test/clang/release{suffix}' + where.mkdir(parents=True, exist_ok=True) + (where / f'{name}.output').write_text(text + '\nEXIT STATUS: 0\n') + return where + + +def write_script(path: Path, text: str) -> None: + path.write_text(text) + path.chmod(0o755) + + +def write_fake_program(path: Path, answers: list[str], case: str) -> None: + write_script(path, FAKE.format(answers=answers, case=case)) + + +BEARSSL = ('dudect case=chacha_open t=69.80 threshold=10 judged=yes\n' + 'dudect evidence case=chacha_open crop=1 limit_ns=9.00 class0_n=5 class0_mean_ns=3.00 ' + 'class1_n=6 class1_mean_ns=4.00\n' + 'dudect case=equal t=3.10 threshold=10 judged=yes\n') + + +def expect(done: subprocess.CompletedProcess[str], status: int) -> None: + if done.returncode != status: + raise AssertionError(f'exit {done.returncode}, not {status}\n{done.stdout}{done.stderr}') + + +def judge_prints_and_warns(scratch: Path) -> None: + write_output(scratch, 'dudect_bearssl', BEARSSL) + done = run_judge('--bin', str(scratch), '--target', 'native') + expect(done, 0) + for text in ('::group::dudect_bearssl (native)\n', BEARSSL, '::endgroup::\n'): + assert text in done.stdout, done.stdout + warnings = [line for line in done.stdout.splitlines() if line.startswith('::warning')] + assert len(warnings) == 1, done.stdout + assert warnings[0].startswith('::warning title=dudect dudect_bearssl chacha_open (native)::' + 'dudect case=chacha_open t=69.80 '), warnings + assert 'dudect evidence case=chacha_open' in warnings[0], warnings + + +def judge_two_of_three_pass(scratch: Path) -> None: + directory = write_output(scratch, 'dudect_bearssl', BEARSSL) + write_fake_program(directory / 'dudect_bearssl', ['3.10', '2.70'], 'chacha_open') + done = run_judge('--bin', str(scratch), '--target', 'native', '--rerun') + expect(done, 0) + assert '69.80, 3.10, 2.70' in done.stdout, done.stdout + + +def judge_two_of_three_fail(scratch: Path) -> None: + directory = write_output(scratch, 'dudect_bearssl', + 'dudect case=equal t=14.00 threshold=10 judged=yes\n') + write_fake_program(directory / 'dudect_bearssl', answers=['12.50', '3.00'], case='equal') + done = run_judge('--bin', str(scratch), '--target', 'native', '--rerun') + assert done.returncode == 1, done + assert ('dudect: equal (dudect_bearssl, native) exceeded 10 in 2 of 3 runs: ' + '14.00, 12.50, 3.00') in done.stderr, done.stderr + + +def judge_unjudged_case(scratch: Path) -> None: + directory = write_output(scratch, 'dudect_sodium', + 'dudect case=x25519_agree t=30.00 threshold=10 judged=no\n') + # No program: a rerun would fail to start it. + done = run_judge('--bin', str(scratch), '--target', 'native', '--rerun') + expect(done, 0) + assert done.stdout.count('::warning') == 1, done.stdout + assert not list(directory.glob('*.count')), 'the case was run again' + + +def judge_skips_planted(scratch: Path) -> None: + write_output(scratch, 'dudect_planted', + 'dudect case=x25519_agree t=66.70 threshold=10 judged=yes\n') + write_output(scratch, 'dudect_harness', + 'dudect case=x t=10.00 threshold=10 judged=yes\nplanted leak found\n') + done = run_judge('--bin', str(scratch), '--target', 'native', '--rerun') + expect(done, 0) + assert 't=66.70' in done.stdout and '::warning' not in done.stdout, done.stdout + assert '::group::dudect_planted (native)' in done.stdout, done.stdout + + +def judge_output_without_case_lines(scratch: Path) -> None: + write_output(scratch, 'dudect_ctaes', '') + done = run_judge('--bin', str(scratch), '--target', 'native') + expect(done, 1) + assert 'dudect_ctaes.output' in done.stderr, done.stderr + + +def judge_wasip2_launcher(scratch: Path) -> None: + directory = write_output(scratch, 'dudect_bearssl', BEARSSL, suffix='/wasi') + log = scratch / 'launcher.log' + launcher = scratch / 'launch.py' + write_script(launcher, LAUNCHER.format(log=str(log), case='chacha_open')) + done = run_judge('--bin', str(scratch), '--target', 'wasip2', '--rerun', '--launcher', + shlex.join([sys.executable, str(launcher)])) + expect(done, 0) + wanted = f'{directory / "dudect_bearssl.wasm"} --case chacha_open' + assert log.read_text() == wanted, log.read_text() + assert '69.80, 1.00, 1.00' in done.stdout, done.stdout + + +CASES: list[Callable[[Path], None]] = [ + judge_prints_and_warns, + judge_two_of_three_pass, + judge_two_of_three_fail, + judge_unjudged_case, + judge_skips_planted, + judge_output_without_case_lines, + judge_wasip2_launcher, +] + + +def main(argv: list[str]) -> int: + unknown = set(argv) - {case.__name__ for case in CASES} + if unknown: + print(f'crypto_dudect_judge_test: no case named {", ".join(sorted(unknown))}', + file=sys.stderr) + return 2 + for case in CASES: + if argv and case.__name__ not in argv: + continue + with tempfile.TemporaryDirectory(prefix='webcpp crypto dudect judge ') as scratch: + case(Path(scratch)) + print(f'{case.__name__}: ok') + print('crypto_dudect_judge_test: ok') + return 0 + + +if __name__ == '__main__': + sys.exit(main(sys.argv[1:])) From 001ff973694946ee5c9e3335738ca1f4f9e7e605 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 02:34:36 -0300 Subject: [PATCH 4/8] ci: crypto's constant-time job gets 120 minutes for the judge's reruns, and the judge step skips only a cancelled run --- .github/workflows/library.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/library.yml b/.github/workflows/library.yml index b21d924..7346559 100644 --- a/.github/workflows/library.yml +++ b/.github/workflows/library.yml @@ -310,7 +310,9 @@ jobs: needs: plan if: needs.plan.outputs.has-own-lanes == 'true' runs-on: ${{ matrix.os }} - timeout-minutes: 60 + # crypto's constant-time lane is followed by dudect's judge, whose reruns of a case under + # wasmtime may last up to 1800 s each: 120 minutes there, 60 elsewhere. + timeout-minutes: ${{ (matrix.library == 'crypto' && matrix.lane == 'constant-time') && 120 || 60 }} strategy: fail-fast: false matrix: ${{ fromJSON(needs.plan.outputs.own-lanes) }} @@ -425,7 +427,7 @@ jobs: # The launcher's bound is the lane's, so a run of the judge's own lasts at most that, and # the judge's subprocess timeout (2400 s) lies beyond it. - name: Judge dudect - if: always() && matrix.library == 'crypto' && matrix.lane == 'constant-time' + if: ${{ !cancelled() && matrix.library == 'crypto' && matrix.lane == 'constant-time' }} env: WEBCPP_WASIP2_TEST_TIMEOUT: ${{ (matrix.library == 'crypto' && matrix.lane == 'constant-time') && '1800' || '600' }} TARGET: ${{ matrix.platform }} From c9f1721d6962515a13f3a8d976322e2bc8602576 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 03:04:42 -0300 Subject: [PATCH 5/8] ci: the dudect judge's launcher bound is a literal and the job's timeout comment names the rerun overrun --- .github/workflows/library.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/library.yml b/.github/workflows/library.yml index 7346559..7a196af 100644 --- a/.github/workflows/library.yml +++ b/.github/workflows/library.yml @@ -311,7 +311,9 @@ jobs: if: needs.plan.outputs.has-own-lanes == 'true' runs-on: ${{ matrix.os }} # crypto's constant-time lane is followed by dudect's judge, whose reruns of a case under - # wasmtime may last up to 1800 s each: 120 minutes there, 60 elsewhere. + # wasmtime may last up to 1800 s each: 120 minutes there, 60 elsewhere. Several wasip2 cases each + # needing two reruns could exceed 120 minutes, which cancels the job (rare; the evidence is + # still in the log). timeout-minutes: ${{ (matrix.library == 'crypto' && matrix.lane == 'constant-time') && 120 || 60 }} strategy: fail-fast: false @@ -429,7 +431,7 @@ jobs: - name: Judge dudect if: ${{ !cancelled() && matrix.library == 'crypto' && matrix.lane == 'constant-time' }} env: - WEBCPP_WASIP2_TEST_TIMEOUT: ${{ (matrix.library == 'crypto' && matrix.lane == 'constant-time') && '1800' || '600' }} + WEBCPP_WASIP2_TEST_TIMEOUT: '1800' TARGET: ${{ matrix.platform }} RERUN: ${{ runner.environment == 'github-hosted' && '--rerun' || '' }} shell: bash From 8a1ffad3867dbb1a19df98c84e25a1ecdedf5c31 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 04:14:16 -0300 Subject: [PATCH 6/8] libs/crypto: GCM's two-pass incremental open, the AES block cipher's default per target, secp256k1's generate, pubkey_negate's result and dudect's evidence and A/A controls (gitlink c81c765) --- libs/crypto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/crypto b/libs/crypto index fec4047..c81c765 160000 --- a/libs/crypto +++ b/libs/crypto @@ -1 +1 @@ -Subproject commit fec404786d20b9f441d91e585e22ee87d575f90f +Subproject commit c81c765eab5d3d9b2da162f15b46cb5f21c0e969 From b56ee2f60e644b18446dfb31c123b6970a149f4b Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 04:50:32 -0300 Subject: [PATCH 7/8] tools: crypto's AES block cipher fixtures include ciphers/aes_block.hpp, which brings the default's backend now that aes.hpp includes none --- tools/test/fixtures/crypto_jamfiles/aes_block_default/app.cpp | 2 +- .../aes_block_default_not_linked_on_emscripten/app.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test/fixtures/crypto_jamfiles/aes_block_default/app.cpp b/tools/test/fixtures/crypto_jamfiles/aes_block_default/app.cpp index 02a1fdb..b54dd44 100644 --- a/tools/test/fixtures/crypto_jamfiles/aes_block_default/app.cpp +++ b/tools/test/fixtures/crypto_jamfiles/aes_block_default/app.cpp @@ -6,7 +6,7 @@ // Encrypts the FIPS-197 appendix C.3 block with AES-256 on the block cipher's default backend, // checks it, decrypts it again, and prints the backend that ran. -#include +#include #include #include diff --git a/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/app.cpp b/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/app.cpp index 97e1799..772d715 100644 --- a/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/app.cpp +++ b/tools/test/fixtures/crypto_jamfiles/aes_block_default_not_linked_on_emscripten/app.cpp @@ -6,7 +6,7 @@ // A program that uses the AES block cipher's default backend, which on WebAssembly is ctaes, and // links none. -#include +#include #include #include From e12968e815683ad255f39db72ec3bc75e50d45bc Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 20:42:32 -0300 Subject: [PATCH 8/8] libs/crypto: GCM's two-pass incremental open, the AES block cipher's default per target in ciphers/aes_block.hpp, secp256k1's generate, pubkey_negate's result and dudect's evidence and A/A controls (gitlink e999052) --- libs/crypto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/crypto b/libs/crypto index 9c9bbc2..e999052 160000 --- a/libs/crypto +++ b/libs/crypto @@ -1 +1 @@ -Subproject commit 9c9bbc27f4b4cccb26b47f13e40b6a960612b2e6 +Subproject commit e99905204f3cba8ea88af1bf29415f68f972a7bd