tsproto: solve the Init1 puzzle off-thread with Montgomery squaring
TeamSpeak 6 beta13 raises the puzzle level with the server's protection level. The solver now runs on a blocking thread, can be cancelled, is ~25% faster (crypto-bigint Montgomery form), and the level cap is configurable (default 100M instead of a fixed 10M). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
1 parent
b72df027fa
commit
cb5a541a3f
6 files changed
+145
-15
No files matched your search
@@ -37,3 +37,9 @@ against or offered back to upstream.
|
||||
`tsclientlib/examples/audio_utils/audio_to_ts.rs`, `tsclientlib/Cargo.toml`).
|
||||
`audiopus` is unmaintained (RUSTSEC-2026-0150) and breaks with CMake 4. The
|
||||
`audiopus-unstable` feature (decoder complexity/DRED via a fork) is dropped.
|
||||
3. **Init1 RSA puzzle off-thread** (`tsproto/src/algorithms.rs`, `tsproto/src/client.rs`,
|
||||
`tsproto/benches/modpow.rs`). `solve_rsa_puzzle` does Montgomery squarings with
|
||||
`crypto-bigint` (about 25% faster than `num-bigint` `modpow`) on a
|
||||
`spawn_blocking` thread that stops when the connect future is dropped. The level
|
||||
cap is `max_puzzle_level()` (default 100 million, was a fixed 10 million),
|
||||
adjustable with `set_max_puzzle_level`, because TeamSpeak 6 adapts the level.
|
||||
Reference in new issue
Block a user