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:
Claude committed 2026-09-25 13:13:20 +00:00
1 parent b72df027fa
commit cb5a541a3f
6 files changed
+145 -15

No files matched your search

Generated
+13 -1
View File
@@ -599,6 +599,17 @@ dependencies = [
"zeroize",
]
[[package]]
name = "crypto-bigint"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96272c2ff28b807e09250b180ad1fb7889a3258f7455759b5c3c58b719467130"
dependencies = [
"num-traits",
"rand_core 0.6.4",
"subtle",
]
[[package]]
name = "crypto-common"
version = "0.1.7"
@@ -803,7 +814,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47"
dependencies = [
"base16ct",
"crypto-bigint",
"crypto-bigint 0.5.5",
"digest 0.10.7",
"ff",
"generic-array",
@@ -3319,6 +3330,7 @@ dependencies = [
"base64 0.22.1",
"clap",
"criterion",
"crypto-bigint 0.6.1",
"curve25519-dalek-ng",
"eax",
"futures",