From 531d9308d4a1b12a3c49b7bf74c2d0965bcd5e8f Mon Sep 17 00:00:00 2001 From: R Date: Fri, 20 Nov 2026 23:28:56 -0300 Subject: [PATCH 01/13] tools/test: the user's Jamfile of /webcpp/crypto//p256-default --- .../crypto_jamfiles/p256_default/Jamfile | 9 +++++ .../crypto_jamfiles/p256_default/app.cpp | 40 +++++++++++++++++++ .../p256_default/p256_default.outcome | 20 ++++++++++ .../Jamfile | 9 +++++ .../app.cpp | 17 ++++++++ ...6_default_not_linked_on_emscripten.outcome | 16 ++++++++ .../p256_on_sodium_on_emscripten/Jamfile | 9 +++++ .../p256_on_sodium_on_emscripten/app.cpp | 20 ++++++++++ .../p256_on_sodium_on_emscripten.outcome | 16 ++++++++ 9 files changed, 156 insertions(+) create mode 100644 tools/test/fixtures/crypto_jamfiles/p256_default/Jamfile create mode 100644 tools/test/fixtures/crypto_jamfiles/p256_default/app.cpp create mode 100644 tools/test/fixtures/crypto_jamfiles/p256_default/p256_default.outcome create mode 100644 tools/test/fixtures/crypto_jamfiles/p256_default_not_linked_on_emscripten/Jamfile create mode 100644 tools/test/fixtures/crypto_jamfiles/p256_default_not_linked_on_emscripten/app.cpp create mode 100644 tools/test/fixtures/crypto_jamfiles/p256_default_not_linked_on_emscripten/p256_default_not_linked_on_emscripten.outcome create mode 100644 tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/Jamfile create mode 100644 tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/app.cpp create mode 100644 tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/p256_on_sodium_on_emscripten.outcome diff --git a/tools/test/fixtures/crypto_jamfiles/p256_default/Jamfile b/tools/test/fixtures/crypto_jamfiles/p256_default/Jamfile new file mode 100644 index 00000000..7b9c58bb --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/p256_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//p256-default ; +# end::jamfile[] diff --git a/tools/test/fixtures/crypto_jamfiles/p256_default/app.cpp b/tools/test/fixtures/crypto_jamfiles/p256_default/app.cpp new file mode 100644 index 00000000..7f29441e --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/p256_default/app.cpp @@ -0,0 +1,40 @@ +// 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) + +// Makes a P-256 key pair from RFC 6979's key (section A.2.5) on the default backend, checks its +// public key against the RFC's, and prints the backend that ran. The scalar is the RFC's: a real +// program draws its own with keypair::generate(). +#include + +#include +#include +#include + +int main() { + namespace p256 = webcpp::crypto::curves::p256; + std::array const scalar{ + 0xc9, 0xaf, 0xa9, 0xd8, 0x45, 0xba, 0x75, 0x16, 0x6b, 0x5c, 0x21, + 0x57, 0x67, 0xb1, 0xd6, 0x93, 0x4e, 0x50, 0xc3, 0xdb, 0x36, 0xe8, + 0x9b, 0x12, 0x7b, 0x8a, 0x62, 0x2b, 0x12, 0x0f, 0x67, 0x21, + }; + std::array const expected{ + 0x04, 0x60, 0xfe, 0xd4, 0xba, 0x25, 0x5a, 0x9d, 0x31, 0xc9, 0x61, 0xeb, 0x74, + 0xc6, 0x35, 0x6d, 0x68, 0xc0, 0x49, 0xb8, 0x92, 0x3b, 0x61, 0xfa, 0x6c, 0xe6, + 0x69, 0x62, 0x2e, 0x60, 0xf2, 0x9f, 0xb6, 0x79, 0x03, 0xfe, 0x10, 0x08, 0xb8, + 0xbc, 0x99, 0xa4, 0x1a, 0xe9, 0xe9, 0x56, 0x28, 0xbc, 0x64, 0xf2, 0xf1, 0xb2, + 0x0c, 0x2d, 0x7e, 0x9f, 0x51, 0x77, 0xa3, 0xc2, 0x94, 0xd4, 0x46, 0x22, 0x99, + }; + auto const key = p256::keypair::make(scalar); + bool ok = false; + if (key) { + auto const public_key = key->public_key(); + ok = public_key && public_key->uncompressed() == expected; + } + auto const name = p256::keypair::backend_type::name; + std::printf("p256 %s backend=%.*s\n", ok ? "ok" : "FAILED", static_cast(name.size()), + name.data()); + return ok ? 0 : 1; +} diff --git a/tools/test/fixtures/crypto_jamfiles/p256_default/p256_default.outcome b/tools/test/fixtures/crypto_jamfiles/p256_default/p256_default.outcome new file mode 100644 index 00000000..f4db2ed3 --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/p256_default/p256_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] +p256 ok backend=bearssl +[wasip2] +p256 ok backend=bearssl +[wasip3] +p256 ok backend=bearssl +[emscripten] +p256 ok backend=bearssl +# end::output[] diff --git a/tools/test/fixtures/crypto_jamfiles/p256_default_not_linked_on_emscripten/Jamfile b/tools/test/fixtures/crypto_jamfiles/p256_default_not_linked_on_emscripten/Jamfile new file mode 100644 index 00000000..4b12ef4a --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/p256_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/p256_default_not_linked_on_emscripten/app.cpp b/tools/test/fixtures/crypto_jamfiles/p256_default_not_linked_on_emscripten/app.cpp new file mode 100644 index 00000000..ef6a9e7b --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/p256_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 makes a P-256 key pair on its default backend, BearSSL, and links none. +#include + +#include +#include + +int main() { + std::array scalar{}; + scalar.back() = 1; + return webcpp::crypto::curves::p256::keypair::make(scalar) ? 0 : 1; +} diff --git a/tools/test/fixtures/crypto_jamfiles/p256_default_not_linked_on_emscripten/p256_default_not_linked_on_emscripten.outcome b/tools/test/fixtures/crypto_jamfiles/p256_default_not_linked_on_emscripten/p256_default_not_linked_on_emscripten.outcome new file mode 100644 index 00000000..c8a60660 --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/p256_default_not_linked_on_emscripten/p256_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. wasip2 and wasip3 have the same message in a compile-diagnostic +# (test/messages/p256_default_not_linked); 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: P-256's default backend on this target is BearSSL, which is not linked, and the one backend that has it there. Add /webcpp/crypto//p256-default, the default's library on every target, to the program's Jamfile, as in: exe app : app.cpp /webcpp/crypto//crypto /webcpp/crypto//p256-default ; (without b2: define WEBCPP_CRYPTO_HAS_BEARSSL=1 and link BearSSL built with webcpp's src/canary_bearssl.c) +# end::messages[] diff --git a/tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/Jamfile b/tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/Jamfile new file mode 100644 index 00000000..014a3e61 --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/p256_on_sodium_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 /third_party//sodium ; +# end::jamfile[] diff --git a/tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/app.cpp b/tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/app.cpp new file mode 100644 index 00000000..3004f578 --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/app.cpp @@ -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) + +// A program that names libsodium, which has no P-256, in a P-256 key pair's type. +#include + +#include +#include + +int main() { + std::array scalar{}; + scalar.back() = 1; + return webcpp::crypto::curves::p256::basic_keypair::make( + scalar) + ? 0 + : 1; +} diff --git a/tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/p256_on_sodium_on_emscripten.outcome b/tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/p256_on_sodium_on_emscripten.outcome new file mode 100644 index 00000000..4414b183 --- /dev/null +++ b/tools/test/fixtures/crypto_jamfiles/p256_on_sodium_on_emscripten/p256_on_sodium_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. wasip2 and wasip3 have the same message in a compile-diagnostic +# (test/messages/p256_on_sodium); 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: sodium has no P-256. The backends that have it: bearssl (native, wasip2, wasip3, emscripten). +# end::messages[] From a1e581191252f23c47bbf3b6725c0d12ddef3b0c Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 07:54:25 -0300 Subject: [PATCH 02/13] tools/test: crypto_collect_test checks that collect.py measures a family's further operation by its name and refuses one crypto.json does not state --- tools/test/crypto_collect_test.py | 42 ++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/tools/test/crypto_collect_test.py b/tools/test/crypto_collect_test.py index f3bfd4f9..780c7259 100644 --- a/tools/test/crypto_collect_test.py +++ b/tools/test/crypto_collect_test.py @@ -10,7 +10,10 @@ directory, b2's bench///..., names another variant, or does not say, is refused before anything runs or is written, the guard's `--timing` program as the throughput's; one at variant=release is taken (it gets as far as running); a cell whose operation is not the one -doc/tables/crypto.json states for its family is refused; `--timing` alone stores the guard's cost +doc/tables/crypto.json states for its family is refused; a further operation the program lists +after its family and backend is measured by that name, stated as the family's "sized_operations" +entry and rendered after the family's fixed operation, and one crypto.json does not state is +refused; `--timing` alone stores the guard's cost beside the data's throughput, which it keeps, and the page renders it, with UTC's date; `--timing` without data is refused with a message; `--provisional` marks each part, the throughput and the guard, on its own, numbers unchanged, a measurement clears only the mark of the part it measured, @@ -100,6 +103,42 @@ def test_an_operation_crypto_json_does_not_state_is_refused(scratch: Path) -> No raise AssertionError('a file was written') +def test_a_further_operation_is_measured_by_its_name(scratch: Path) -> None: + def line(operation: str, median: float) -> str: + return json.dumps({'family': 'p256', 'backend': 'bearssl', 'operation': operation, + 'target': 'native', 'compiler': 'clang', 'repetitions': 1, + 'runs_us': [median], 'median_us': median}) + fixed = line('ECDSA signature of a 32-byte SHA-256 digest', 20.0) + further = line("x coordinate of the ECDH shared point with a peer's public key", 40.0) + # The stand-in answers the further operation only when it is named after the backend; its + # lines are files, since the operation's text holds a quote. + (scratch / 'fixed.json').write_text(fixed + '\n') + (scratch / 'further.json').write_text(further + '\n') + exe = program(scratch, 'release', + 'if [ "$1" = --list ]; then printf "p256 bearssl ecdh_x\\np256 bearssl\\n"; ' + f'elif [ "$3" = ecdh_x ]; then cat "{scratch}/further.json"; ' + f'elif [ "$3" = --runs ]; then cat "{scratch}/fixed.json"; else exit 3; fi\n') + data, page = scratch / 'data.json', scratch / 'page.adoc' + done = run('--exe', f'native={exe}', '--invocations', '1', '--data', data, '--page', page) + expect(done, 0) + measured = {case['operation']: case['median_us'] + for case in json.loads(data.read_text())['cases']} + if measured != {'ECDSA signature of a 32-byte SHA-256 digest': 20.0, + "x coordinate of the ECDH shared point with a peer's public key": 40.0}: + raise AssertionError(f'measured {measured}') + text = page.read_text() + first = text.index('| P-256: ECDSA signature of a 32-byte SHA-256 digest') + second = text.index("| P-256: x coordinate of the ECDH shared point with a peer's public key") + if first > second: + raise AssertionError('the further operation is rendered before the fixed one') + unknown = program(scratch / 'unknown', 'release', + 'if [ "$1" = --list ]; then echo "p256 bearssl recover"; else exit 3; fi\n') + done = run('--exe', f'native={unknown}', '--invocations', '1', '--data', + scratch / 'other.json', '--page', scratch / 'other.adoc') + expect(done, 1, "native lists p256 bearssl recover, and crypto.json's family p256 has no " + 'sized operation recover') + + def test_a_timing_program_not_built_at_variant_release_is_refused(scratch: Path) -> None: data, page = scratch / 'data.json', scratch / 'page.adoc' data.write_text(DATA.read_text()) @@ -382,6 +421,7 @@ def test_the_page_states_the_load_and_warns_above_half_the_cores(scratch: Path) test_a_program_not_built_at_variant_release_is_refused, test_a_program_built_at_variant_release_is_measured, test_an_operation_crypto_json_does_not_state_is_refused, + test_a_further_operation_is_measured_by_its_name, test_a_timing_program_not_built_at_variant_release_is_refused, test_the_guard_is_measured_kept_beside_the_throughput_and_rendered, test_the_throughput_measured_alone_keeps_the_guards_mark, From c228b06edfd865f944a32a124a306d8ef97bb081 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 07:54:25 -0300 Subject: [PATCH 03/13] CODING-GUIDELINES: webcpp::crypto's P-256 as built, increment 3's first part --- CODING-GUIDELINES.md | 67 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/CODING-GUIDELINES.md b/CODING-GUIDELINES.md index 4496305d..02205619 100644 --- a/CODING-GUIDELINES.md +++ b/CODING-GUIDELINES.md @@ -7124,6 +7124,54 @@ and not built is in chapter 17. Source: `libraries/crypto/openspec/changes/genesis/design.md` (proposals); `test/secp256k1_xonly_tweak_test.cpp` (libs/crypto). +**P-256 (the foundation's increment 3, its first part; built on the branch +`crypto/p256`, not merged).** + +- **`curves::p256` is a family of its own, on BearSSL, its one backend and + default on all four targets; OpenSSL and Botan join in their increments.** + A key pair made from its 32-byte scalar (`make`, refused before BearSSL when + 0 or not below n, by a constant-time check whose verdict alone is public) or + drawn (`generate`), its public point computed once; a `public_key` validated + once where it arrives, SEC 1's uncompressed point or its two coordinates; + ECDSA over a SHA-256 digest with RFC 6979's nonce, raw (WebCrypto's form) + and strict DER; ECDH's raw x, as WebCrypto's `deriveBits` gives it. BearSSL + allocates nothing; natively it runs `br_ec_p256_m62` where BearSSL has a + 128-bit product, on WebAssembly `br_ec_p256_m31` always. BearSSL's own + stack frames keep what they compute from the scalar, which webcpp cannot + wipe; the page says so. + Source: `libraries/crypto/openspec/changes/foundation/design.md` D36 + (proposals); `include/webcpp/crypto/curves/p256.hpp` and + `backends/bearssl.hpp` (libs/crypto). +- **The key formats are fixed layouts: SPKI of 91 bytes (RFC 5480, the + uncompressed point) and PKCS#8 of 138 bytes (version 0, RFC 5915's + ECPrivateKey version 1 without parameters and with the public key); a + decoder accepts exactly what the encoder writes, the point checked against + the scalar.** The bytes OpenSSL's and BearSSL's encoders and node's + WebCrypto write, checked by the oracles; anything else is + `invalid_encoding`. + Source: `include/webcpp/crypto/curves/p256/formats.hpp` (libs/crypto). +- **Low S is two primitives, not a mode: `sign_ecdsa` returns S as computed + and `verify_ecdsa` accepts both forms, as FIPS 186-5 and WebCrypto do; + `normalize_ecdsa` gives the low form and `check_low_s` refuses the high + one, neither calling a backend.** A protocol that requires low S + (Trystero's handshakes) applies them; the protocol itself is + webcpp::trystero's (D24), which the guide's section on signed handshakes + shows with an example. Their verdict is marked public for the constant-time + checkers, a signature being public once made. + Source: `include/webcpp/crypto/curves/p256.hpp`, `doc/p2p.adoc` + (libs/crypto). +- **Constant time, sizes and throughput cover the family.** memcheck and + MemorySanitizer run the key pair's making, signing with its low-S + normalization and check, `ecdh_x` and `decode_pkcs8` (`paths.hpp`), each + checker failing on a planted early exit in a copy of the scalar check; + BearSSL's own branches on its signing's verdicts are listed for memcheck in + `bearssl_verdicts.supp`. dudect times `sign_ecdsa` and `ecdh_x` against the + scalar natively and on wasip2. The sizes lane measures signing, + verification and `ecdh_x`, and the throughput page the same three, from + release builds. + Source: `libs/crypto/test/constant_time/Jamfile`, `test/sizes/Jamfile`, + `bench/throughput.cpp`. + **Errors and exceptions.** - **Every operation that can fail returns `boost::system::result` or @@ -8707,6 +8755,25 @@ increments 1 and 2, whose state is first. from release builds through `webcpp.program-sizes`. Source: `libs/crypto/test/constant_time/Jamfile` and `test/sizes/Jamfile`. +**The foundation's increment 3 (plan Tasks 3.1 to 3.11; its P-256 part, +Tasks 3.1 to 3.6, built on its branch, not merged).** + +- **P-256 on BearSSL is built on the branch `crypto/p256` of the library and + the superproject, for webcpp::trystero's port of Trystero 0.27.0 (design + D36): the family, its formats, its oracles (OpenSSL natively and on WASI, + node's WebCrypto on Emscripten), its constant-time paths, sizes and + throughput, and the guide's signed handshakes.** Chapter 15 holds what is + built. NIST's ACVP vectors wait for the `acvp` submodule of Task 3.8, and + the WebCrypto oracle runs in node, Chrome with the browser lane's increment. + Source: `libraries/crypto/openspec/changes/foundation/reference/plan.md` + Tasks 3.1 to 3.6 (proposals). +- **The rest of increment 3 is outlined, each task written in full when + P-256 has merged: P-384 and P-521 on the same engine (3.7), X25519 on + BearSSL and the `acvp` submodule (3.8), AES-CTR, AES-CBC, AES-CCM and + AES-EAX on BearSSL (3.9), RSA (3.10), and the increment's close (3.11).** + Source: `libraries/crypto/openspec/changes/foundation/reference/plan.md` + Tasks 3.7 to 3.11 (proposals). + **Constant time (increment 1, Task 14; merged).** - **Constant time is checked deterministically on Linux x86-64 and arm64 From 6d1ad5580f3bcfd536af8be6a966370a9d2685a4 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 09:19:57 -0300 Subject: [PATCH 04/13] third_party: BearSSL at webcpporg/bearssl's webcpp branch, upstream 7bea48e with one fix: ECDSA decodes the RFC 6979 nonce at its full length, so that signing no longer branches on the nonce's bit length --- third_party/libs/bearssl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/libs/bearssl b/third_party/libs/bearssl index 7bea48e5..32381d6e 160000 --- a/third_party/libs/bearssl +++ b/third_party/libs/bearssl @@ -1 +1 @@ -Subproject commit 7bea48e5e850ab4cafbe68d3765cdaba13a86d6f +Subproject commit 32381d6e787a32cbb7a687246349200d78b8ff7c From c904bd88064c204864daf23b2c24443d15b97439 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 09:20:45 -0300 Subject: [PATCH 05/13] tools/test: the BearSSL pin and crypto's canary fixtures name 32381d6, webcpporg/bearssl's webcpp branch --- .../canary_missing/canary_missing.outcome | 12 +++++----- .../canary_other_configuration.outcome | 12 +++++----- .../canary_without/canary_without.outcome | 22 +++++++++---------- tools/test/third_party_test.py | 9 ++++---- 4 files changed, 28 insertions(+), 27 deletions(-) diff --git a/tools/test/fixtures/crypto_jamfiles/canary_missing/canary_missing.outcome b/tools/test/fixtures/crypto_jamfiles/canary_missing/canary_missing.outcome index 8848ddbb..6d58dbb0 100644 --- a/tools/test/fixtures/crypto_jamfiles/canary_missing/canary_missing.outcome +++ b/tools/test/fixtures/crypto_jamfiles/canary_missing/canary_missing.outcome @@ -10,18 +10,18 @@ build: fails # tag::messages[] [native-darwin] contains: Undefined symbols for architecture -contains: _webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: _webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [native-linux] -contains: webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link -contains: undefined reference to `webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link' +contains: webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link +contains: undefined reference to `webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link' [wasip2] contains: wasm-ld: error: -contains: undefined symbol: webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [wasip3] contains: wasm-ld: error: -contains: undefined symbol: webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [emscripten] contains: wasm-ld: error: -contains: undefined symbol: webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link contains: em++: error: # end::messages[] diff --git a/tools/test/fixtures/crypto_jamfiles/canary_other_configuration/canary_other_configuration.outcome b/tools/test/fixtures/crypto_jamfiles/canary_other_configuration/canary_other_configuration.outcome index e6f40bf4..de1d5592 100644 --- a/tools/test/fixtures/crypto_jamfiles/canary_other_configuration/canary_other_configuration.outcome +++ b/tools/test/fixtures/crypto_jamfiles/canary_other_configuration/canary_other_configuration.outcome @@ -10,18 +10,18 @@ build: fails # tag::messages[] [native-darwin] contains: Undefined symbols for architecture -contains: _webcpp_crypto_bearssl_7bea48e_sysrng__add_third_party_bearssl_to_your_link +contains: _webcpp_crypto_bearssl_32381d6_sysrng__add_third_party_bearssl_to_your_link [native-linux] -contains: webcpp_crypto_bearssl_7bea48e_sysrng__add_third_party_bearssl_to_your_link -contains: undefined reference to `webcpp_crypto_bearssl_7bea48e_sysrng__add_third_party_bearssl_to_your_link' +contains: webcpp_crypto_bearssl_32381d6_sysrng__add_third_party_bearssl_to_your_link +contains: undefined reference to `webcpp_crypto_bearssl_32381d6_sysrng__add_third_party_bearssl_to_your_link' [wasip2] contains: wasm-ld: error: -contains: undefined symbol: webcpp_crypto_bearssl_7bea48e_sysrng__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_crypto_bearssl_32381d6_sysrng__add_third_party_bearssl_to_your_link [wasip3] contains: wasm-ld: error: -contains: undefined symbol: webcpp_crypto_bearssl_7bea48e_sysrng__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_crypto_bearssl_32381d6_sysrng__add_third_party_bearssl_to_your_link [emscripten] contains: wasm-ld: error: -contains: undefined symbol: webcpp_crypto_bearssl_7bea48e_sysrng__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_crypto_bearssl_32381d6_sysrng__add_third_party_bearssl_to_your_link contains: em++: error: # end::messages[] diff --git a/tools/test/fixtures/crypto_jamfiles/canary_without/canary_without.outcome b/tools/test/fixtures/crypto_jamfiles/canary_without/canary_without.outcome index dccf7941..d693f327 100644 --- a/tools/test/fixtures/crypto_jamfiles/canary_without/canary_without.outcome +++ b/tools/test/fixtures/crypto_jamfiles/canary_without/canary_without.outcome @@ -10,31 +10,31 @@ build: fails # tag::messages[] [native-darwin] contains: Undefined symbols for architecture -contains: _webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: _webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [native-linux] -contains: webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link -contains: undefined reference to `webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link' +contains: webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link +contains: undefined reference to `webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link' [wasip2] contains: wasm-ld: error: -contains: undefined symbol: webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [wasip3] contains: wasm-ld: error: -contains: undefined symbol: webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [emscripten] contains: wasm-ld: error: -contains: undefined symbol: webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link contains: em++: error: # end::messages[] # The canary is the only link error (spec section 4.3): no line names an undefined symbol or # reference that is not it. Each linker's own words for one. [native-darwin] -not-contains: ", referenced from: unless webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +not-contains: ", referenced from: unless webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [native-linux] -not-contains: undefined reference unless webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +not-contains: undefined reference unless webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [wasip2] -not-contains: undefined symbol unless webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +not-contains: undefined symbol unless webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [wasip3] -not-contains: undefined symbol unless webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +not-contains: undefined symbol unless webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [emscripten] -not-contains: undefined symbol unless webcpp_crypto_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +not-contains: undefined symbol unless webcpp_crypto_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link diff --git a/tools/test/third_party_test.py b/tools/test/third_party_test.py index 25d0bb6e..fb9a4d12 100755 --- a/tools/test/third_party_test.py +++ b/tools/test/third_party_test.py @@ -45,8 +45,9 @@ BEARSSL = 'third_party/libs/bearssl' -# The commit BearSSL is pinned at, of the mirror webcpporg/bearssl. -BEARSSL_COMMIT = '7bea48e5e850ab4cafbe68d3765cdaba13a86d6f' +# The commit BearSSL is pinned at: webcpporg/bearssl's webcpp branch, upstream 7bea48e with one +# fix (ECDSA decodes the RFC 6979 nonce at its full length). +BEARSSL_COMMIT = '32381d6e787a32cbb7a687246349200d78b8ff7c' BITCOIN = 'third_party/libs/bitcoin' @@ -403,8 +404,8 @@ def bearssl_compiles(root: Path, expected: int) -> str: def bearssl_canary(library: str) -> str: prefix = '_' if sys.platform == 'darwin' else '' - return (f'{prefix}webcpp_{library}_bearssl_7bea48e_getentropy__add_third_party_bearssl' - '_to_your_link') + return (f'{prefix}webcpp_{library}_bearssl_{BEARSSL_COMMIT[:7]}_getentropy' + '__add_third_party_bearssl_to_your_link') def test_bearssl_is_built_file_by_file(root: Path) -> None: From 11d2789523f1a997ccf77f85138af9502bd35fa8 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 09:20:45 -0300 Subject: [PATCH 06/13] third_party: the BearSSL target's comment says it comes from webcpp's fork, upstream 7bea48e with the one fix to ECDSA's nonce decoding --- third_party/Jamfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/third_party/Jamfile b/third_party/Jamfile index 6152f7ec..55fe7b0d 100644 --- a/third_party/Jamfile +++ b/third_party/Jamfile @@ -255,14 +255,16 @@ rule crypto-checked-out ( properties * ) .c-library = $(.c-sections) @crypto-checked-out $(CRYPTO)/include ; -# BearSSL (MIT), from webcpp's unmodified mirror webcpporg/bearssl. Every .c -# of src/, the POWER8 ones too, which off POWER compile to the stubs other -# files call. One source of entropy, getentropy, with RDRAND and /dev/urandom -# off (libs/crypto's random_device reads the same source): wasi-libc and -# Emscripten declare getentropy only under _DEFAULT_SOURCE, and macOS only in -# , which src/rand/sysrng.c does not include. On Windows -# BearSSL's only seeder is CryptGenRandom, not the system's BCryptGenRandom, -# so every seeder is off there and BearSSL has none. +# BearSSL (MIT), from webcpp's fork webcpporg/bearssl, branch webcpp: upstream +# 7bea48e with one commit, ECDSA's nonce decoded at its full length so that +# signing does not branch on its bit length (CODING-GUIDELINES chapter 5, +# rule 1). Every .c of src/, the POWER8 ones too, which off POWER compile to +# the stubs other files call. One source of entropy, getentropy, with RDRAND +# and /dev/urandom off (libs/crypto's random_device reads the same source): +# wasi-libc and Emscripten declare getentropy only under _DEFAULT_SOURCE, and +# macOS only in , which src/rand/sysrng.c does not include. On +# Windows BearSSL's only seeder is CryptGenRandom, not the system's +# BCryptGenRandom, so every seeder is off there and BearSSL has none. path-constant BEARSSL : libs/bearssl ; rule bearssl-checked-out ( properties * ) From 67f3e67944530ba5c03fc337d770632802db8e5e Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 09:24:09 -0300 Subject: [PATCH 07/13] CODING-GUIDELINES: BearSSL's pin carries one security fix on webcpporg/bearssl's webcpp branch, the exception chapter 5 rule 1 now allows, and P-256's constant-time checkers as they ran, the leak they found and its fix --- CODING-GUIDELINES.md | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/CODING-GUIDELINES.md b/CODING-GUIDELINES.md index 02205619..b349d822 100644 --- a/CODING-GUIDELINES.md +++ b/CODING-GUIDELINES.md @@ -340,7 +340,12 @@ exactly its authors' and the program carries only what it calls. 1. The C library is a submodule under `third_party/libs/`, pinned at a commit and never edited. When upstream is not on GitHub, an unmodified `webcpporg/` mirror stands in (BearSSL's is `webcpporg/bearssl`), - refreshed only when the pin moves. + refreshed only when the pin moves. One exception, a security fix upstream + does not have yet: a branch `webcpp` of the mirror carries upstream's + commit and the fix, one commit each, pinned there and carried to each new + pin until upstream has it. BearSSL's has one, of 2026-11-21: ECDSA decodes + RFC 6979's nonce at its full length, so that signing does not branch on the + nonce's bit length (chapter 15, webcpp::crypto's P-256). 2. `third_party/Jamfile` builds it from its own sources, file by file, as a static library, in the library's own C dialect, on every target and with every file: a file that does not apply to a target still compiles, to the @@ -956,7 +961,7 @@ update --init third_party/libs/`; a build that needs none never looks. | Target | What it is | Licence | | --- | --- | --- | -| `bearssl` | BearSSL from webcpp's unmodified mirror `webcpporg/bearssl` at `7bea48e`; a static library built file by file by `third_party/Jamfile` with webcpp::crypto's and webcpp::hash's canaries (hash's when `libs/hash` is checked out), on every target; `WEBCPP_CRYPTO_HAS_BEARSSL=1`, and `WEBCPP_HASH_HAS_BEARSSL=1` with hash's canary | MIT | +| `bearssl` | BearSSL from webcpp's mirror `webcpporg/bearssl` at `32381d6`, its branch `webcpp`: upstream's `7bea48e` and one fix, ECDSA's nonce decoded at its full length (chapter 5 rule 1); a static library built file by file by `third_party/Jamfile` with webcpp::crypto's and webcpp::hash's canaries (hash's when `libs/hash` is checked out), on every target; `WEBCPP_CRYPTO_HAS_BEARSSL=1`, and `WEBCPP_HASH_HAS_BEARSSL=1` with hash's canary | MIT | | `bips` | `bitcoin/bips` at `927b6de9`, shallow, test data: crypto's tests read BIP340's `bip-0340/test-vectors.csv` and BIP341's `bip-0341/wallet-test-vectors.json` at run time under the directory its define `WEBCPP_TEST_BIPS` gives, on every target (wasmtime is given it, `webcpp.data`), and run again when it changes | BSD-2-Clause, as BIP340's header states | | `blake2_vectors` | BLAKE2's reference code package `BLAKE2/BLAKE2` at `ed1974e` (2023-02-12), the submodule `third_party/libs/blake2`, shallow, test data that nothing compiles: hash's tests read `testvectors/blake2b-kat.txt` and `testvectors/blake2-kat.json` at run time under the directory its define `WEBCPP_TEST_BLAKE2_VECTORS` gives, on every target (wasmtime is given it, `webcpp.data`), and run again when one of them changes | CC0-1.0 | | `blake3` | BLAKE3 1.8.7 at `f3149ec`; `third_party/Jamfile` compiles `c/blake3.c`, `blake3_dispatch.c` and `blake3_portable.c` on every target, the intrinsics files on their instruction sets alone (an exception to chapter 5 rule 2), with webcpp::hash's canary; `WEBCPP_HASH_HAS_BLAKE3=1` | CC0-1.0, Apache-2.0, or Apache-2.0 with LLVM exception | @@ -7168,9 +7173,18 @@ and not built is in chapter 17. `bearssl_verdicts.supp`. dudect times `sign_ecdsa` and `ecdh_x` against the scalar natively and on wasip2. The sizes lane measures signing, verification and `ecdh_x`, and the throughput page the same three, from - release builds. + release builds. The checkers ran on 2026-11-21 in an arm64 Linux container + (`linux-lint:arm64`, clang 18, Valgrind 3.22), the lane's CI command: both + found upstream BearSSL's signing branching on the RFC 6979 nonce's bit + length, `br_ecdsa_i31_bits2int` decoding it with its actual length and + `br_i31_rshift` looping by it (a Minerva-class leak), and nothing once + webcpp's BearSSL carried the fix, one commit setting the order's length + before the shift (chapter 5 rule 1); the planted programs failed and dudect + passed there too. Source: `libs/crypto/test/constant_time/Jamfile`, `test/sizes/Jamfile`, - `bench/throughput.cpp`. + `bench/throughput.cpp`, `doc/backends.adoc` (libs/crypto); + https://github.com/webcpporg/bearssl/commit/32381d6e787a32cbb7a687246349200d78b8ff7c + (the fix) and BearSSL's `src/ec/ecdsa_i31_bits.c` at `7bea48e` (upstream). **Errors and exceptions.** @@ -7196,7 +7210,8 @@ and not built is in chapter 17. measured, a port is a new thing to review. Source: `libraries/crypto/openspec/changes/genesis/design.md` D1 (proposals). -- **BearSSL comes unmodified from webcpp's mirror `webcpporg/bearssl`; its +- **BearSSL comes from webcpp's mirror `webcpporg/bearssl`, upstream's code + with one security fix on its branch `webcpp` (chapter 5 rule 1); its notice ships as `LICENSE-BEARSSL.txt`, and webcpp's canary lives in the library's `src/`. The backend names its code itself: the CTR class of AES-NI, then POWER8, then `aes_ct64`, and GHASH by PCLMUL, then POWER8, From 3353acfc72fea9bff367f198aabee34541f44f50 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 20:13:26 -0300 Subject: [PATCH 08/13] tools/test: the hash_jamfiles BearSSL canary fixture names the pin 32381d6, and libs/hash is at the commit that moves it --- libs/hash | 2 +- .../canary_bearssl_missing.outcome | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/hash b/libs/hash index 302c8334..47778e35 160000 --- a/libs/hash +++ b/libs/hash @@ -1 +1 @@ -Subproject commit 302c833480897476128d635fb39385f5919521d8 +Subproject commit 47778e359fdd5088a862468c520b32d881f7c38e diff --git a/tools/test/fixtures/hash_jamfiles/canary_bearssl_missing/canary_bearssl_missing.outcome b/tools/test/fixtures/hash_jamfiles/canary_bearssl_missing/canary_bearssl_missing.outcome index 108021fa..20202edb 100644 --- a/tools/test/fixtures/hash_jamfiles/canary_bearssl_missing/canary_bearssl_missing.outcome +++ b/tools/test/fixtures/hash_jamfiles/canary_bearssl_missing/canary_bearssl_missing.outcome @@ -9,17 +9,17 @@ targets: native wasip2 wasip3 emscripten build: fails [native-darwin] contains: Undefined symbols for architecture -contains: _webcpp_hash_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: _webcpp_hash_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [native-linux] -contains: webcpp_hash_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link -contains: undefined reference to `webcpp_hash_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link' +contains: webcpp_hash_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link +contains: undefined reference to `webcpp_hash_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link' [wasip2] contains: wasm-ld: error: -contains: undefined symbol: webcpp_hash_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_hash_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [wasip3] contains: wasm-ld: error: -contains: undefined symbol: webcpp_hash_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_hash_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link [emscripten] contains: wasm-ld: error: -contains: undefined symbol: webcpp_hash_bearssl_7bea48e_getentropy__add_third_party_bearssl_to_your_link +contains: undefined symbol: webcpp_hash_bearssl_32381d6_getentropy__add_third_party_bearssl_to_your_link contains: em++: error: From c16afe37b75f82a4afcd2c1407a8c66b713f34d9 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 20:13:42 -0300 Subject: [PATCH 09/13] CODING-GUIDELINES: a webcpp branch's fix must be minimal, value-preserving and reported upstream, and a library without a mirror takes one in a fork --- CODING-GUIDELINES.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CODING-GUIDELINES.md b/CODING-GUIDELINES.md index b349d822..51dc4dd9 100644 --- a/CODING-GUIDELINES.md +++ b/CODING-GUIDELINES.md @@ -343,9 +343,13 @@ exactly its authors' and the program carries only what it calls. refreshed only when the pin moves. One exception, a security fix upstream does not have yet: a branch `webcpp` of the mirror carries upstream's commit and the fix, one commit each, pinned there and carried to each new - pin until upstream has it. BearSSL's has one, of 2026-11-21: ECDSA decodes - RFC 6979's nonce at its full length, so that signing does not branch on the - nonce's bit length (chapter 15, webcpp::crypto's P-256). + pin until upstream has it. The fix is minimal, preserves every value the + library computes, and is reported upstream (an owner item). A library + whose upstream is not mirrored under webcpporg takes such a fix the same + way, in a `webcpporg/` fork created for it, with the same `webcpp` + branch rule. BearSSL's has one, of 2026-11-21: ECDSA decodes RFC 6979's + nonce at its full length, so that signing does not branch on the nonce's + bit length (chapter 15, webcpp::crypto's P-256). 2. `third_party/Jamfile` builds it from its own sources, file by file, as a static library, in the library's own C dialect, on every target and with every file: a file that does not apply to a target still compiles, to the From bf8b68d0f19671a3468285ad72371d560259f155 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 20:36:10 -0300 Subject: [PATCH 10/13] CODING-GUIDELINES: P-256 and the foundation's increment 3 first part are marked merged --- CODING-GUIDELINES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CODING-GUIDELINES.md b/CODING-GUIDELINES.md index 51dc4dd9..ce3cff9a 100644 --- a/CODING-GUIDELINES.md +++ b/CODING-GUIDELINES.md @@ -7134,7 +7134,7 @@ and not built is in chapter 17. `test/secp256k1_xonly_tweak_test.cpp` (libs/crypto). **P-256 (the foundation's increment 3, its first part; built on the branch -`crypto/p256`, not merged).** +`crypto/p256`, merged 2026-11-21).** - **`curves::p256` is a family of its own, on BearSSL, its one backend and default on all four targets; OpenSSL and Botan join in their increments.** @@ -8775,7 +8775,7 @@ increments 1 and 2, whose state is first. Source: `libs/crypto/test/constant_time/Jamfile` and `test/sizes/Jamfile`. **The foundation's increment 3 (plan Tasks 3.1 to 3.11; its P-256 part, -Tasks 3.1 to 3.6, built on its branch, not merged).** +Tasks 3.1 to 3.6, built on its branch, merged 2026-11-21).** - **P-256 on BearSSL is built on the branch `crypto/p256` of the library and the superproject, for webcpp::trystero's port of Trystero 0.27.0 (design From 68d268f9e32c37d1a53d1ead23587565aaf45c5f Mon Sep 17 00:00:00 2001 From: R Date: Sun, 22 Nov 2026 06:02:35 -0300 Subject: [PATCH 11/13] CODING-GUIDELINES: P-256's entries give the day increment 3's first part merged --- CODING-GUIDELINES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CODING-GUIDELINES.md b/CODING-GUIDELINES.md index 551bd0f7..be764eeb 100644 --- a/CODING-GUIDELINES.md +++ b/CODING-GUIDELINES.md @@ -7151,7 +7151,7 @@ and not built is in chapter 17. `test/secp256k1_xonly_tweak_test.cpp` (libs/crypto). **P-256 (the foundation's increment 3, its first part; built on the branch -`crypto/p256`, merged 2026-11-21).** +`crypto/p256`, merged 2026-11-22).** - **`curves::p256` is a family of its own, on BearSSL, its one backend and default on all four targets; OpenSSL and Botan join in their increments.** @@ -8792,7 +8792,7 @@ increments 1 and 2, whose state is first. Source: `libs/crypto/test/constant_time/Jamfile` and `test/sizes/Jamfile`. **The foundation's increment 3 (plan Tasks 3.1 to 3.11; its P-256 part, -Tasks 3.1 to 3.6, built on its branch, merged 2026-11-21).** +Tasks 3.1 to 3.6, built on its branch, merged 2026-11-22).** - **P-256 on BearSSL is built on the branch `crypto/p256` of the library and the superproject, for webcpp::trystero's port of Trystero 0.27.0 (design From 0b9f69030ab367cbb84ae81aa3f6515c22178487 Mon Sep 17 00:00:00 2001 From: R Date: Sun, 22 Nov 2026 06:41:39 -0300 Subject: [PATCH 12/13] tools/test: libs/hash at the commit whose generated pages differ from main only in the BearSSL pin --- libs/hash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hash b/libs/hash index 89f8a555..235dfb36 160000 --- a/libs/hash +++ b/libs/hash @@ -1 +1 @@ -Subproject commit 89f8a555badd59f12c7ec074eed8b7b91a31fe38 +Subproject commit 235dfb36f0ed5e8ff8d676afb2f185fce33e79c6 From b5fbb1240b89f96c856c97d464f541b32d956094 Mon Sep 17 00:00:00 2001 From: R Date: Sun, 22 Nov 2026 07:05:33 -0300 Subject: [PATCH 13/13] libs/crypto, libs/hash: P-256 on BearSSL, and hash's BearSSL canary at the pin 32381d6 --- libs/crypto | 2 +- libs/hash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/crypto b/libs/crypto index e9990520..dd176cf9 160000 --- a/libs/crypto +++ b/libs/crypto @@ -1 +1 @@ -Subproject commit e99905204f3cba8ea88af1bf29415f68f972a7bd +Subproject commit dd176cf9eab0b680d89d776ebcff84d4799a9ef9 diff --git a/libs/hash b/libs/hash index 235dfb36..24f2d63a 160000 --- a/libs/hash +++ b/libs/hash @@ -1 +1 @@ -Subproject commit 235dfb36f0ed5e8ff8d676afb2f185fce33e79c6 +Subproject commit 24f2d63a5c0473e5360cb5fcc524f1f2e7d39d28