From 7cde217e871e331c6c5dad22a9b8341ac56aa790 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 22:46:37 -0300 Subject: [PATCH 1/4] libs/crypto: the asynchronous family over the synchronous backends, async.hpp, and the heavy machinery on webcpp::hash's model, which the Emscripten refusal fixture now names (gitlink 3d567f5) --- libs/crypto | 2 +- .../heavy_without_threads_on_emscripten/app.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/crypto b/libs/crypto index e999052..3d567f5 160000 --- a/libs/crypto +++ b/libs/crypto @@ -1 +1 @@ -Subproject commit e99905204f3cba8ea88af1bf29415f68f972a7bd +Subproject commit 3d567f52aea36337af579c19e95a951bb65535d9 diff --git a/tools/test/fixtures/crypto_jamfiles/heavy_without_threads_on_emscripten/app.cpp b/tools/test/fixtures/crypto_jamfiles/heavy_without_threads_on_emscripten/app.cpp index dbef3e4..8abdab4 100644 --- a/tools/test/fixtures/crypto_jamfiles/heavy_without_threads_on_emscripten/app.cpp +++ b/tools/test/fixtures/crypto_jamfiles/heavy_without_threads_on_emscripten/app.cpp @@ -7,20 +7,20 @@ // A heavy operation's async_ variant called in a build for Emscripten without -pthread. #include -#include +#include namespace { -int slow(int value) noexcept { +boost::system::result slow(int value) noexcept { return value + 1; } template -auto async_slow(Executor executor, int value, CompletionToken&& token) { +auto async_slow(Executor const& work, int value, CompletionToken&& token) { WEBCPP_CRYPTO_DETAIL_REQUIRE_THREADS("async_slow", "slow"); - return webcpp::crypto::detail::run_heavy( - std::move(executor), [value]() noexcept { return slow(value); }, - std::forward(token)); + return webcpp::crypto::detail::run_on_work( + work, []() noexcept { return boost::system::result(); }, + [value]() noexcept { return slow(value); }, token); } struct executor {}; @@ -31,5 +31,5 @@ struct token {}; int main() { async_slow(executor{}, 41, token{}); - return slow(0) == 1 ? 0 : 1; + return *slow(0) == 1 ? 0 : 1; } From 944671efe6eeb18eba890bb9d65f6ef837bb1f68 Mon Sep 17 00:00:00 2001 From: R Date: Sun, 22 Nov 2026 00:34:56 -0300 Subject: [PATCH 2/4] libs/crypto: the asynchronous family's final review and lint fixes (gitlink 0ba6463) --- libs/crypto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/crypto b/libs/crypto index 3d567f5..0ba6463 160000 --- a/libs/crypto +++ b/libs/crypto @@ -1 +1 @@ -Subproject commit 3d567f52aea36337af579c19e95a951bb65535d9 +Subproject commit 0ba6463d48a74c78ec13d99c5de2776b5afb9f40 From aadbe1eac0b53570f3636e93c9f0405c47d56fbb Mon Sep 17 00:00:00 2001 From: R Date: Sun, 22 Nov 2026 07:35:33 -0300 Subject: [PATCH 3/4] libs/crypto: P-256's asynchronous functions, with P-256 landed from main, and their test's lint fixes (gitlink 900d455) --- libs/crypto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/crypto b/libs/crypto index 7d92025..900d455 160000 --- a/libs/crypto +++ b/libs/crypto @@ -1 +1 @@ -Subproject commit 7d9202553bef3610289878641b23bfe0471a07e1 +Subproject commit 900d4557bc582d7e10d68259179e9a5e2dea7f1d From 008d439165aefba41e729821458975ced2b8fde4 Mon Sep 17 00:00:00 2001 From: R Date: Sun, 22 Nov 2026 09:28:19 -0300 Subject: [PATCH 4/4] libs/crypto: the asynchronous family over the synchronous backends with P-256's forms, and the heavy machinery on webcpp::hash's model (gitlink e8c0740) --- libs/crypto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/crypto b/libs/crypto index 900d455..e8c0740 160000 --- a/libs/crypto +++ b/libs/crypto @@ -1 +1 @@ -Subproject commit 900d4557bc582d7e10d68259179e9a5e2dea7f1d +Subproject commit e8c07402626921badcc3e0133576caaa478870d1