E8: multi-target sharing
Generated by python3 tools/experiments/e8_multi_target.py. Never edit by hand.
Toy group: order-q subgroup of Z_p^*, q = 16777259 (about 2^24). Declared sets of M = 4096 keys; half of the targets fall inside (seed 8). Cost is group multiplications per successful recovery, with all precomputation included. For fewer than 64 targets the figure is averaged over repeated batches.
- arbitrary set, afresh: list the set again for each target (cost computed from the key's position).
- arbitrary set, shared: compute the M public values once, then one lookup per target.
- interval, afresh: baby-step giant-step per target with a table of sqrt(M).
- interval, shared: one baby-step table of sqrt(M u) for all targets, fewer giant steps each.
| targets u | arbitrary, afresh | arbitrary, shared | interval, afresh | interval, shared |
|---|---|---|---|---|
| 1 | 6537 | 9042 | 255 | 255 |
| 4 | 6285 | 2116 | 206 | 104 |
| 16 | 4771 | 445 | 310 | 80 |
| 64 | 6125 | 130 | 188 | 25 |
| 256 | 5896 | 33 | 232 | 17 |
| 1024 | 6021 | 10 | 224 | 9 |
| 4096 | 5894 | 4 | 227 | 6 |
Result
- Without sharing, the cost per success does not depend on the number of targets. That is the single-target model.
- With sharing it falls with u: fitted slope of log cost against log u is -0.98 for the arbitrary set (expected -1 until u reaches M, then a floor of about 1/0.5 lookups) and -0.45 for the interval (expected -0.5). The change is in the growth rate, not only in a constant factor.
- At u = M the shared table over an arbitrary set is as cheap per success as the shared interval search. With enough targets, listing in advance catches up with structure; the structural advantage is a statement about few targets or bounded memory.
- The price is memory: the shared interval table holds sqrt(M u) entries and the arbitrary table M entries.
Consequence: a statement of attack cost must give the number of targets and the
memory, as taxonomy/classification.md I.2 requires (D9, D17, [R18]).