SLIDE 1
Lo Low-de depth pth qu quantu tum m cir ircuit its for r computing ting dis iscr cret ete e logarit ithms hms on bin inary ellip iptic tic curves
Rainer Steinwandt (based on joint work with Martin Rötteler)
SLIDE 2 Dlog log com
putation on
binary y EC ECs
- infeasibility essential for prominent schemes
ECDSA: {B,K}-{163, 233, 283, 409, 571}
- Shor: feasible with scalable quantum computer
efficient quantum circuits for EC arithmetic What is the depth of such an “attack circuit”?
SLIDE 3 Wh Whic ich h pa part rts are re (t (tim ime-)crit )critical? ical?
ransform: fast parallel circuits known ( Cleve-Watrous ‘00)
- (Double) scalar multiplication:
for fixed non-zero P , QE(GF(2n)) find kP+lQ Maslov-Mathew-Cheung-Pradhan ‘09: depth O(n2) with polynomial basis & projective coordinates
unique point representation: O(n2) inversion
nlog n (Amento-Rötteler-S. ’13)
SLIDE 4 Ga Gate tes s us used ed
CNOT OT : Toffoli li: Executing two gates in parallel:
- nly if they operate on disjoint sets of wires
|q1 |q2 |q3 |q1 |q2 |q3 |q1 |q2 |q3q1 |q1 |q2 |q3(q1 q2)
SLIDE 5 Co Comp mplete lete bin inary y Ed Edwards wards cur urves ves
Bernstein et al. ’08: For n3 each ordinary binary elliptic curve birationally equivalent to a complete binary Edwards curve: d1(x+y)+d2(x2+y2)=xy+xy(x+y)+x2y2 (d1 GF(2n)*, d2GF(2n) with T r(d2)=1).
- no projective closure needed
(but projective coord. allow to avoid inversion)
SLIDE 6
Co Comp mplete lete addit dition ion la law
Find P1+P2 for any curve points P1=(x1,y1), P2=(x2,y2): Point addition – const. number of GF(2n) operations: addition, squaring, multiplication (, inversion)
SLIDE 7 Lo Low-dep depth th GF GF(2 (2n)-arithmet arithmetic ic
Design decision: polynomial basis representation
tion
: depth O(1)
Squaring ng: : matrix-vector mult. addition trees+“multi-fan-out CNOT w/ |0-input”: O(log n)
ltiplic plicatio tion: n: Maslov et al.’s construction reduces to 3 matrix-vector multiplications parallelization: depth O(log n) Projec ectiv tive e po point addition: n: dep epth h O(lo log n)
SLIDE 8 Passing ssing to to af affine ine coo
rdinates
… ensures unique representation of group elements: Amento et al.’s GF(2n)-inverter reduces to O(log n) matrix-vector mult. + GF(2n)-mult.: depth O(log2 n) final inversion to ensure uniqueness as costly as complete projective point addition
SLIDE 9
Ho How w to to co comp mpute ute kP+lQ
Maslov et al.’strategy – right-to-left double-and-add: R ← 0 for i = 0 to n step 1 if ki= 1 then R ← R + 2i·P if li= 1 then R ← R + 2i·Q return R … yields depth O(nlog n) circuit … requires O(n) potentially different adder circuits precomputed
SLIDE 10
Le Left-to to-right right + Shamir/Straus’s trick
R ← 0 if kn= 1 then R ← R + P if ln= 1 then R ← R + Q for i = n−1 to 0 step −1 R ← 2·R if ki= 1 then R ← R + P if li= 1 then R ← R + Q return R … depth O(nlog n), 3 circuit types, n doublings general doubling
SLIDE 11 Paralleli rallelized zed dou
ble-and and-add add
requires “multi-fan-out CNOT w/ |0-input” … depth O(log2n), general addition circuits
SLIDE 12 Co Conc nclusion lusion
Suitable field & curve arithmetic reduces depth from O(n2) to O(log2n), maintaining polynomial size.
- Can we simplify the (Edwards) addition circuits?
fewer T
- gates and reduced T
- depth desirable
- Can we avoid or simplify the inversion?
“normal form as expensive as the circuit” Room to optimize dlog computation on binary ECs.
SLIDE 13