E6: relabeling
Generated by python3 tools/experiments/e6_relabeling.py. Never edit by hand.
Toy group: order-q subgroup of Z_p^*, p = 33554519, q = 16777259 (about 2^24). The relabeling is a public Feistel bijection on 1..q-1 with no relation to the group. Each cell is the mean over 200 random targets (seed 6), in group multiplications; one exponentiation in a listing is charged as one unit. The baseline is the mean cost of listing the set, (M - 1)/2, so \(\rho\) here is an average-case figure.
Declared attack, transported
| set size M | cost, original | cost, relabeled and transported | rho, original | rho, transported | cost, 'simple' labels after relabeling | rho, 'simple' labels |
|---|---|---|---|---|---|---|
| 2^8 | 25 | 25 | 5.1 | 5.1 | 130 | 0.98 |
| 2^12 | 95 | 96 | 21.6 | 21.3 | 2169 | 0.94 |
| 2^16 | 389 | 386 | 84.1 | 85.0 | 33452 | 0.98 |
After relabeling, the members of the transported set are scattered labels such as 13783098, 4977831, 3836111, 111166 (the images of 1, 2, 3, 4). They no longer look small, and the attack is exactly as fast, plus one translation of its output. The labels 1, 2, 3, ... still look small, but they now name scattered scalars and only listing finds them.
Search strategy, transported or not
| key k in C | rank, ascending in C | its label k' in C' | rank, transported order in C' | rank, ascending on the new labels |
|---|---|---|---|---|
| 4 | 4 | 111166 | 4 | 111166 |
| 255 | 255 | 7128657 | 255 | 7128657 |
| 65536 | 65536 | 6485069 | 65536 | 6485069 |
The transported order tries the labels \(\pi^{-1}(1),\pi^{-1}(2),\dots\) and keeps every rank. Plain ascending order on the new labels does not.
Result
- Cost and \(\rho\) of the interval attack are unchanged by relabeling when the set and attack are transported: confirmed (within sampling error).
- Labels that merely look simple after relabeling have \(\rho\) near 1: confirmed.
- A transported search order keeps its ranks, so relabeling alone does not separate group A from B1. \(\rho\) does.
Claim tested: taxonomy/classification.md I.3 "Relabeling" (D17).