E3: structural advantage of intervals and arbitrary sets
Generated by python3 tools/experiments/e3_structural_advantage.py. Never edit by hand.
- Interval
- Arbitrary set
Toy group: order-q subgroup of Z_p^*, p = 33554519, q = 16777259 (about 2^24). Costs are
mean group multiplications over random targets uniform on the set (seed 3);
one exponentiation in a listing is charged as one unit. The generic attack is
baby-step giant-step over the whole group: mean 6272, worst 8151.
\(\rho\) = min(listing, generic) / attack cost, as in taxonomy/classification.md I.2.
| set size M | listing | baseline is | interval attack, mean | worst | rho, interval | sigma (bits) | arbitrary set, listing | rho, arbitrary |
|---|---|---|---|---|---|---|---|---|
| 2^4 | 8 | listing | 6 | 8 | 1.3 | 0.4 | 8 | 1.06 |
| 2^6 | 32 | listing | 13 | 16 | 2.6 | 1.4 | 35 | 0.92 |
| 2^8 | 128 | listing | 24 | 32 | 5.3 | 2.4 | 122 | 1.05 |
| 2^10 | 512 | listing | 48 | 64 | 10.6 | 3.4 | 503 | 1.02 |
| 2^12 | 2048 | listing | 95 | 128 | 21.6 | 4.4 | 2028 | 1.01 |
| 2^14 | 8192 | generic | 190 | 256 | 33.0 | 5.0 | 8350 | 1.00 |
| 2^16 | 32768 | generic | 382 | 510 | 16.4 | 4.0 | not run | - |
| 2^18 | 131072 | generic | 765 | 1022 | 8.2 | 3.0 | not run | - |
| 2^20 | 524288 | generic | 1529 | 2046 | 4.1 | 2.0 | not run | - |
Intervals start at a random offset, not at 1. Arbitrary sets are random samples of the group; listing them is the best method implemented, and the attacker may fall back on the generic attack when that is cheaper.
Result
- Slope of \(\log_2\rho\) against \(\log_2 M\) for intervals, while listing is the baseline: 0.51 (expected 0.5).
- Slope for arbitrary sets: 0.00 (expected 0). Confirmed.
- Once listing costs more than the generic attack (here from M = 2^14, about sqrt(q)), the baseline is capped. \(\rho\) for intervals peaks there and then falls as sqrt(q/M), reaching 1 only when the interval is the whole group. A subset-specific gain remains above the peak, but it shrinks. Without the cap of decision D2 the largest intervals would show the largest advantage.
- The interval attack costs about 1.5 sqrt(M) on average, so \(\rho\) is about sqrt(M)/3 here, not sqrt(M): the constant depends on the cost model.
Limit: this measures the methods implemented. It does not show that no faster attack on arbitrary subsets exists (I.1, best-known costs).