--what are the achievements versus overheads?--a. wild, a. moradi, and t. güneysu. glifred:...

71
Horst Görtz Institute for IT-Security Assessment of Hiding the Higher-Order --what are the achievements versus overheads?-- Amir Moradi, Alexander Wild September 16, 2015

Upload: others

Post on 31-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Horst Görtz Institute for IT-Security

Assessment of Hiding the Higher-Order--what are the achievements versus overheads?--

Amir Moradi, Alexander Wild

September 16, 2015

Page 2: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France2

Intro to SCAAttack Model

Input

Output

𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜 ← 𝐸𝐸𝐾𝐾(𝑖𝑖𝑖𝑖𝑜𝑜𝑜𝑜𝑜𝑜)

Page 3: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France3

Intro to SCAAttack Model

Input

Output

𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜 ← 𝐸𝐸𝐾𝐾(𝑖𝑖𝑖𝑖𝑜𝑜𝑜𝑜𝑜𝑜)

Page 4: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France4

Intro to SCAAttack Model

Input

Output

𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜 ← 𝐸𝐸𝐾𝐾(𝑖𝑖𝑖𝑖𝑜𝑜𝑜𝑜𝑜𝑜)

Leakage𝑇𝑇𝑖𝑖𝑇𝑇𝑖𝑖𝑖𝑖𝑇𝑇,𝑃𝑃𝑜𝑜𝑃𝑃𝑃𝑃𝑃𝑃,

𝐸𝐸𝐸𝐸, …

Page 5: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France5

Intro to SCAAttack Model

Input

Output

𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜 ← 𝐸𝐸𝐾𝐾(𝑖𝑖𝑖𝑖𝑜𝑜𝑜𝑜𝑜𝑜)

Leakage𝑇𝑇𝑖𝑖𝑇𝑇𝑖𝑖𝑖𝑖𝑇𝑇,𝑃𝑃𝑜𝑜𝑃𝑃𝑃𝑃𝑃𝑃,

𝐸𝐸𝐸𝐸, …

Countermeasures

Masking

Page 6: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France6

Intro to SCAAttack Model

Input

Output

𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜 ← 𝐸𝐸𝐾𝐾(𝑖𝑖𝑖𝑖𝑜𝑜𝑜𝑜𝑜𝑜)

Leakage𝑇𝑇𝑖𝑖𝑇𝑇𝑖𝑖𝑖𝑖𝑇𝑇,𝑃𝑃𝑜𝑜𝑃𝑃𝑃𝑃𝑃𝑃,

𝐸𝐸𝐸𝐸, …

Countermeasures

Masking Hiding

Page 7: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France7

Intro to SCAAttack Model

Input

Output

𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜𝑜 ← 𝐸𝐸𝐾𝐾(𝑖𝑖𝑖𝑖𝑜𝑜𝑜𝑜𝑜𝑜)

Leakage𝑇𝑇𝑖𝑖𝑇𝑇𝑖𝑖𝑖𝑖𝑇𝑇,𝑃𝑃𝑜𝑜𝑃𝑃𝑃𝑃𝑃𝑃,

𝐸𝐸𝐸𝐸, …

Countermeasures

Masking Hiding Rekeying

Page 8: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France8

IntroductionMotivation

Page 9: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France9

Threshold Implementation provide 1st-order security.S. Nikova, C. Rechberger, and V. Rijmen. Threshold Implementations Against Side-Channel Attacks and Glitches. ICICS’06

• Might be restricted to univariate.

• Area overhead might be problematic.

• Finding uniform representation might be challenging.

IntroductionMotivation

Page 10: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France10

Threshold Implementation provide 1st-order security.S. Nikova, C. Rechberger, and V. Rijmen. Threshold Implementations Against Side-Channel Attacks and Glitches. ICICS’06

• Might be restricted to univariate.

• Area overhead might be problematic.

• Finding uniform representation might be challenging.

Hiding schemes should not used solely.• Expected hardening on each statistical order.

• Higher-Order attacks are hard on noisy traces. Power-Equalization schemes

reduce signal level and have the same effect.E. Prouff M. Rivain, and R. Bevan. Statistical Analysis of Second Order Differential Power Analysis. IEEE Trans. Computers 2009

IntroductionMotivation

Page 11: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France11

Threshold Implementation provide 1st-order security.S. Nikova, C. Rechberger, and V. Rijmen. Threshold Implementations Against Side-Channel Attacks and Glitches. ICICS’06

• Might be restricted to univariate.

• Area overhead might be problematic.

• Finding uniform representation might be challenging.

Hiding schemes should not used solely.• Expected hardening on each statistical order.

• Higher-Order attacks are hard on noisy traces. Power-Equalization schemes

reduce signal level and have the same effect.E. Prouff M. Rivain, and R. Bevan. Statistical Analysis of Second Order Differential Power Analysis. IEEE Trans. Computers 2009

Combine hiding with TI• Often suggested but “never” examined.

IntroductionMotivation

Page 12: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France12

GliFreDConcept

Page 13: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France13

GliFreDConcept

Dual-rail logic styles, (ideally) equalize the power/energy consumption.

Page 14: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France14

GliFreDConcept

Dual-rail logic styles, (ideally) equalize the power/energy consumption.

They usually fail to be ideal, but can for sure reduce the signal.

Page 15: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France15

GliFreDConcept

Dual-rail logic styles, (ideally) equalize the power/energy consumption.

They usually fail to be ideal, but can for sure reduce the signal.

Limited routing resources in FPGAs → not much success to mount.

Page 16: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France16

GliFreDConcept

Dual-rail logic styles, (ideally) equalize the power/energy consumption.

They usually fail to be ideal, but can for sure reduce the signal.

Limited routing resources in FPGAs → not much success to mount.

Slightly different approach: Glitch-Free Duplication (GliFreD)A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power-Equalized Circuits on FPGAs. Cryptology ePrint Archive, Report 2015/124.

• Each LUT enabled once at each two clock cycles (precharge vs eval) and is

followed by a two flip-flips (master-slave)

Page 17: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France17

GliFreDConcept

Dual-rail logic styles, (ideally) equalize the power/energy consumption.

They usually fail to be ideal, but can for sure reduce the signal.

Limited routing resources in FPGAs → not much success to mount.

Slightly different approach: Glitch-Free Duplication (GliFreD)A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power-Equalized Circuits on FPGAs. Cryptology ePrint Archive, Report 2015/124.

• Each LUT enabled once at each two clock cycles (precharge vs eval) and is

followed by a two flip-flips (master-slave)

Page 18: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France18

𝑆𝑆1

𝑆𝑆2

𝑆𝑆𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜

(𝑥𝑥1,𝑦𝑦1, 𝑧𝑧1)

(𝑥𝑥2,𝑦𝑦2, 𝑧𝑧2)

(𝑥𝑥𝑠𝑠𝑖𝑖𝑖𝑖 ,𝑦𝑦𝑠𝑠𝑖𝑖𝑖𝑖 , 𝑧𝑧𝑠𝑠𝑖𝑖𝑖𝑖)

=(𝑥𝑥,𝑦𝑦, 𝑧𝑧)

(𝑎𝑎1)

(𝑎𝑎2)

(𝑎𝑎𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜)

Higher-Order TIConcept

B. Bilgin, B. Gierlichs, S. Nikova, V. Nikov, and V. Rijmen. Higher-Order Threshold Implementations. ASIACRYPT 2014,

Page 19: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France19

Correctness

𝑆𝑆1

𝑆𝑆2

𝑆𝑆𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜

(𝑥𝑥1,𝑦𝑦1, 𝑧𝑧1)

(𝑥𝑥2,𝑦𝑦2, 𝑧𝑧2)

(𝑥𝑥𝑠𝑠𝑖𝑖𝑖𝑖 ,𝑦𝑦𝑠𝑠𝑖𝑖𝑖𝑖 , 𝑧𝑧𝑠𝑠𝑖𝑖𝑖𝑖)

=(𝑥𝑥,𝑦𝑦, 𝑧𝑧)

(𝑎𝑎1)

(𝑎𝑎2)

(𝑎𝑎𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜)

Higher-Order TIConcept

B. Bilgin, B. Gierlichs, S. Nikova, V. Nikov, and V. Rijmen. Higher-Order Threshold Implementations. ASIACRYPT 2014,

Page 20: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France20

Correctness

dth-order non completeness

𝑆𝑆1

𝑆𝑆2

𝑆𝑆𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜

(𝑥𝑥1,𝑦𝑦1, 𝑧𝑧1)

(𝑥𝑥2,𝑦𝑦2, 𝑧𝑧2)

(𝑥𝑥𝑠𝑠𝑖𝑖𝑖𝑖 ,𝑦𝑦𝑠𝑠𝑖𝑖𝑖𝑖 , 𝑧𝑧𝑠𝑠𝑖𝑖𝑖𝑖)

=(𝑥𝑥,𝑦𝑦, 𝑧𝑧)

(𝑎𝑎1)

(𝑎𝑎2)

(𝑎𝑎𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜)

Higher-Order TIConcept

B. Bilgin, B. Gierlichs, S. Nikova, V. Nikov, and V. Rijmen. Higher-Order Threshold Implementations. ASIACRYPT 2014,

Page 21: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France21

Correctness

dth-order non completeness

• Linear Functions:o s ≥ d + 1 𝑆𝑆1

𝑆𝑆2

𝑆𝑆𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜

(𝑥𝑥1,𝑦𝑦1, 𝑧𝑧1)

(𝑥𝑥2,𝑦𝑦2, 𝑧𝑧2)

(𝑥𝑥𝑠𝑠𝑖𝑖𝑖𝑖 ,𝑦𝑦𝑠𝑠𝑖𝑖𝑖𝑖 , 𝑧𝑧𝑠𝑠𝑖𝑖𝑖𝑖)

=(𝑥𝑥,𝑦𝑦, 𝑧𝑧)

(𝑎𝑎1)

(𝑎𝑎2)

(𝑎𝑎𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜)

Higher-Order TIConcept

B. Bilgin, B. Gierlichs, S. Nikova, V. Nikov, and V. Rijmen. Higher-Order Threshold Implementations. ASIACRYPT 2014,

Page 22: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France22

Correctness

dth-order non completeness

• Linear Functions:o s ≥ d + 1

• Nonlinear Functions:o t = algebraic degree

o sin ≥ td + 1

o sout ≥sint

o 1st : sin ≥ 3, sout ≥ 3

o 2nd : sin ≥ 5, sout ≥ 10

𝑆𝑆1

𝑆𝑆2

𝑆𝑆𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜

(𝑥𝑥1,𝑦𝑦1, 𝑧𝑧1)

(𝑥𝑥2,𝑦𝑦2, 𝑧𝑧2)

(𝑥𝑥𝑠𝑠𝑖𝑖𝑖𝑖 ,𝑦𝑦𝑠𝑠𝑖𝑖𝑖𝑖 , 𝑧𝑧𝑠𝑠𝑖𝑖𝑖𝑖)

=(𝑥𝑥,𝑦𝑦, 𝑧𝑧)

(𝑎𝑎1)

(𝑎𝑎2)

(𝑎𝑎𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜)

Higher-Order TIConcept

B. Bilgin, B. Gierlichs, S. Nikova, V. Nikov, and V. Rijmen. Higher-Order Threshold Implementations. ASIACRYPT 2014,

Page 23: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France23

Correctness

dth-order non completeness

• Linear Functions:o s ≥ d + 1

• Nonlinear Functions:o t = algebraic degree

o sin ≥ td + 1

o sout ≥sint

o 1st : sin ≥ 3, sout ≥ 3

o 2nd : sin ≥ 5, sout ≥ 10

Uniformity

𝑆𝑆1

𝑆𝑆2

𝑆𝑆𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜

(𝑥𝑥1,𝑦𝑦1, 𝑧𝑧1)

(𝑥𝑥2,𝑦𝑦2, 𝑧𝑧2)

(𝑥𝑥𝑠𝑠𝑖𝑖𝑖𝑖 ,𝑦𝑦𝑠𝑠𝑖𝑖𝑖𝑖 , 𝑧𝑧𝑠𝑠𝑖𝑖𝑖𝑖)

=(𝑥𝑥,𝑦𝑦, 𝑧𝑧)

(𝑎𝑎1)

(𝑎𝑎2)

(𝑎𝑎𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜)

Higher-Order TIConcept

B. Bilgin, B. Gierlichs, S. Nikova, V. Nikov, and V. Rijmen. Higher-Order Threshold Implementations. ASIACRYPT 2014,

Page 24: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France24

Correctness

dth-order non completeness

• Linear Functions:o s ≥ d + 1

• Nonlinear Functions:o t = algebraic degree

o sin ≥ td + 1

o sout ≥sint

o 1st : sin ≥ 3, sout ≥ 3

o 2nd : sin ≥ 5, sout ≥ 10

Uniformity

Registers after nonlinear functions

𝑆𝑆1

𝑆𝑆2

𝑆𝑆𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜

(𝑥𝑥1,𝑦𝑦1, 𝑧𝑧1)

(𝑥𝑥2,𝑦𝑦2, 𝑧𝑧2)

(𝑥𝑥𝑠𝑠𝑖𝑖𝑖𝑖 ,𝑦𝑦𝑠𝑠𝑖𝑖𝑖𝑖 , 𝑧𝑧𝑠𝑠𝑖𝑖𝑖𝑖)

=(𝑥𝑥,𝑦𝑦, 𝑧𝑧)

(𝑎𝑎1)

(𝑎𝑎2)

(𝑎𝑎𝑠𝑠𝑜𝑜𝑜𝑜𝑜𝑜)

Higher-Order TIConcept

B. Bilgin, B. Gierlichs, S. Nikova, V. Nikov, and V. Rijmen. Higher-Order Threshold Implementations. ASIACRYPT 2014,

Page 25: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France25

Case Studies

Page 26: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France26

Case Studies

KATAN-32

• 1st-order TI

• 2nd-order TI

• 1st-order TI by GliFreD

Page 27: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France27

Case Studies

KATAN-32

• 1st-order TI

• 2nd-order TI

• 1st-order TI by GliFreD

PRESENT-80

• 1st-order TI

• 2nd-order TI

• 1st-order TI by GliFreD

Page 28: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France28

Higher-Order TIPRESENT

Page 29: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France29

Higher-Order TIPRESENT

S(x) is cubic bijection with t=3

Page 30: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France30

Higher-Order TIPRESENT

S(x) is cubic bijection with t=3

Bilgin, Nikova, Nikov, Rijmen, Tokareva, Vitkup: Threshold

implementations of small S-boxes. Cryptography and Communications

7(1): 3-33 (2015)

• S x = 𝐴𝐴𝐴 𝐶𝐶266 𝐴𝐴 𝑥𝑥

Page 31: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France31

Higher-Order TIPRESENT

S(x) is cubic bijection with t=3

Bilgin, Nikova, Nikov, Rijmen, Tokareva, Vitkup: Threshold

implementations of small S-boxes. Cryptography and Communications

7(1): 3-33 (2015)

• S x = 𝐴𝐴𝐴 𝐶𝐶266 𝐴𝐴 𝑥𝑥

• #shares: 1st = 4 ; 2nd = 7

Page 32: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France32

Higher-Order TIPRESENT

S(x) is cubic bijection with t=3

Bilgin, Nikova, Nikov, Rijmen, Tokareva, Vitkup: Threshold

implementations of small S-boxes. Cryptography and Communications

7(1): 3-33 (2015)

• S x = 𝐴𝐴𝐴 𝐶𝐶266 𝐴𝐴 𝑥𝑥

• #shares: 1st = 4 ; 2nd = 7

Decomposition reduces shares

Page 33: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France33

Higher-Order TIPRESENT

S(x) is cubic bijection with t=3

Bilgin, Nikova, Nikov, Rijmen, Tokareva, Vitkup: Threshold

implementations of small S-boxes. Cryptography and Communications

7(1): 3-33 (2015)

• S x = 𝐴𝐴𝐴 𝐶𝐶266 𝐴𝐴 𝑥𝑥

• #shares: 1st = 4 ; 2nd = 7

Decomposition reduces shares

• 𝑆𝑆 𝑥𝑥 = 𝐴𝐴3 𝑄𝑄299 𝐴𝐴2 𝑄𝑄294 𝐴𝐴1 𝑥𝑥

Page 34: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France34

Higher-Order TIPRESENT

S(x) is cubic bijection with t=3

Bilgin, Nikova, Nikov, Rijmen, Tokareva, Vitkup: Threshold

implementations of small S-boxes. Cryptography and Communications

7(1): 3-33 (2015)

• S x = 𝐴𝐴𝐴 𝐶𝐶266 𝐴𝐴 𝑥𝑥

• #shares: 1st = 4 ; 2nd = 7

Decomposition reduces shares

• 𝑆𝑆 𝑥𝑥 = 𝐴𝐴3 𝑄𝑄299 𝐴𝐴2 𝑄𝑄294 𝐴𝐴1 𝑥𝑥

• #shares: 1st = 3 ; 2nd = 5

Page 35: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France35

Higher-Order TIPRESENT

S(x) is cubic bijection with t=3

Bilgin, Nikova, Nikov, Rijmen, Tokareva, Vitkup: Threshold

implementations of small S-boxes. Cryptography and Communications

7(1): 3-33 (2015)

• S x = 𝐴𝐴𝐴 𝐶𝐶266 𝐴𝐴 𝑥𝑥

• #shares: 1st = 4 ; 2nd = 7

Decomposition reduces shares

• 𝑆𝑆 𝑥𝑥 = 𝐴𝐴3 𝑄𝑄299 𝐴𝐴2 𝑄𝑄294 𝐴𝐴1 𝑥𝑥

• #shares: 1st = 3 ; 2nd = 5

1st-order TI

2nd-order TI

Page 36: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France36

Implementation

Xilinx Spartan-6 FPGA of SAKURA-G

Profile Resources Frequency Latency Pipeline ThroughputLUT FF (MHz) (#clock) (stages) (Mbit/s)

KATAN-1st 34 96 225.38 273 1 26.42KATAN-2nd 65 180 321.54 273 1 37.69KATAN-1st-G 114 548 438.21 546 1 25.68PRESENT-1st 808 384 206.61 64 2 413.22PRESENT-2nd 2245 1680 203.46 128 4 406.92PRESENT-1st-G 5442 12672 458.09 704 11 458.09

Page 37: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France37

Implementation

GliFreD circuits form a pipeline with a very short critical path

Xilinx Spartan-6 FPGA of SAKURA-G

Profile Resources Frequency Latency Pipeline ThroughputLUT FF (MHz) (#clock) (stages) (Mbit/s)

KATAN-1st 34 96 225.38 273 1 26.42KATAN-2nd 65 180 321.54 273 1 37.69KATAN-1st-G 114 548 438.21 546 1 25.68PRESENT-1st 808 384 206.61 64 2 413.22PRESENT-2nd 2245 1680 203.46 128 4 406.92PRESENT-1st-G 5442 12672 458.09 704 11 458.09

Page 38: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France38

Implementation

GliFreD circuits form a pipeline with a very short critical path• Frequency (hence throughput) can be higher than non-GliFreD designs

Xilinx Spartan-6 FPGA of SAKURA-G

Profile Resources Frequency Latency Pipeline ThroughputLUT FF (MHz) (#clock) (stages) (Mbit/s)

KATAN-1st 34 96 225.38 273 1 26.42KATAN-2nd 65 180 321.54 273 1 37.69KATAN-1st-G 114 548 438.21 546 1 25.68PRESENT-1st 808 384 206.61 64 2 413.22PRESENT-2nd 2245 1680 203.46 128 4 406.92PRESENT-1st-G 5442 12672 458.09 704 11 458.09

Page 39: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France39

Implementation

GliFreD circuits form a pipeline with a very short critical path• Frequency (hence throughput) can be higher than non-GliFreD designs• Achievements depend on the application and the design nature

Xilinx Spartan-6 FPGA of SAKURA-G

Profile Resources Frequency Latency Pipeline ThroughputLUT FF (MHz) (#clock) (stages) (Mbit/s)

KATAN-1st 34 96 225.38 273 1 26.42KATAN-2nd 65 180 321.54 273 1 37.69KATAN-1st-G 114 548 438.21 546 1 25.68PRESENT-1st 808 384 206.61 64 2 413.22PRESENT-2nd 2245 1680 203.46 128 4 406.92PRESENT-1st-G 5442 12672 458.09 704 11 458.09

Page 40: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France40

Welch’s t-test

Page 41: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France41

Welch’s t-test

Measure power traces.

Page 42: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France42

Welch’s t-test

Measure power traces. Determine distinguisher, e.g.:

• fix vs. random plaintext (non-specific t-test)

Page 43: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France43

Welch’s t-test

Measure power traces. Determine distinguisher, e.g.:

• fix vs. random plaintext (non-specific t-test) Group traces depending on distinguisher. G0 G1

Page 44: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France44

Welch’s t-test

Measure power traces. Determine distinguisher, e.g.:

• fix vs. random plaintext (non-specific t-test) Group traces depending on distinguisher. Compute sample mean for each point in time.

G0 G1

Page 45: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France45

Welch’s t-test

Measure power traces. Determine distinguisher, e.g.:

• fix vs. random plaintext (non-specific t-test) Group traces depending on distinguisher. Compute sample mean for each point in time. Compute sample variance for each point in time.

G0 G1

Page 46: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France46

Welch’s t-test

Measure power traces. Determine distinguisher, e.g.:

• fix vs. random plaintext (non-specific t-test) Group traces depending on distinguisher. Compute sample mean for each point in time. Compute sample variance for each point in time. Determine t-statistic for each point in time:

𝑜𝑜 =𝜇𝜇 𝑇𝑇 𝜖𝜖 𝐺𝐺1 − 𝜇𝜇(𝑇𝑇 𝜖𝜖 𝐺𝐺0)

𝛿𝛿2(𝑇𝑇 𝜖𝜖 𝐺𝐺1)𝐺𝐺1

+ 𝛿𝛿2(𝑇𝑇 𝜖𝜖 𝐺𝐺0)𝐺𝐺0

Where 𝜇𝜇 denotes the sample mean and 𝛿𝛿denotes the sample variance.

G0 G1

Page 47: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France47

Welch’s t-test

Measure power traces. Determine distinguisher, e.g.:

• fix vs. random plaintext (non-specific t-test) Group traces depending on distinguisher. Compute sample mean for each point in time. Compute sample variance for each point in time. Determine t-statistic for each point in time:

𝑜𝑜 =𝜇𝜇 𝑇𝑇 𝜖𝜖 𝐺𝐺1 − 𝜇𝜇(𝑇𝑇 𝜖𝜖 𝐺𝐺0)

𝛿𝛿2(𝑇𝑇 𝜖𝜖 𝐺𝐺1)𝐺𝐺1

+ 𝛿𝛿2(𝑇𝑇 𝜖𝜖 𝐺𝐺0)𝐺𝐺0

Where 𝜇𝜇 denotes the sample mean and 𝛿𝛿denotes the sample variance.

G0 G1

4.5

- 4.5

Fail/Pass Criteria: If there is any point in time for which the t-statistic exceeds a threshold of ± 4.5 the device under test fails.

Page 48: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France48

Welch’s t-test

Measure power traces. Determine distinguisher, e.g.:

• fix vs. random plaintext (non-specific t-test) Group traces depending on distinguisher. Compute sample mean for each point in time. Compute sample variance for each point in time. Determine t-statistic for each point in time:

𝑜𝑜 =𝜇𝜇 𝑇𝑇 𝜖𝜖 𝐺𝐺1 − 𝜇𝜇(𝑇𝑇 𝜖𝜖 𝐺𝐺0)

𝛿𝛿2(𝑇𝑇 𝜖𝜖 𝐺𝐺1)𝐺𝐺1

+ 𝛿𝛿2(𝑇𝑇 𝜖𝜖 𝐺𝐺0)𝐺𝐺0

Where 𝜇𝜇 denotes the sample mean and 𝛿𝛿denotes the sample variance.

G0 G1

4.5

- 4.5

Fail/Pass Criteria: If there is any point in time for which the t-statistic exceeds a threshold of ± 4.5 the device under test fails.

T. Schneider, A. Moradi. Leakage Assessment Methodology - a clear roadmap for side-channel evaluations. CHES 2015

Page 49: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France49

SAKURA-G

Running the designs @ 24MHz

Measurements with 500MS/s

Several million traces

Non-specific t-test

• 1st- to 5th-order

• Depends on used shares

EvaluationSetup

Page 50: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France50

EvaluationKATAN-1ST (1 Million Traces)

Sample Trace

First-Order

Second-Order

Third-Order

Page 51: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France51

EvaluationKATAN-2ND (100 Million Traces)

Sample Trace

First-Order

Second-Order

Third-Order

Fourth-Order

Fifth-Order

Page 52: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France52

EvaluationKATAN-1st-G (1 Billion Traces)

Sample Trace

First-Order

Second-Order

Third-Order

Page 53: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France53

EvaluationPRESENT-1ST (10 Million Traces)

Sample Trace

First-Order

Second-Order

Third-Order

Page 54: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France54

EvaluationPRESENT-2ND (300 Million Traces)

Sample Trace

First-Order

Second-Order

Third-Order

Fourth-Order

Fifth-Order

Page 55: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France55

EvaluationPRESENT-1ST-G (1Billion Traces)

Sample Trace

First-Order

Second-Order

Third-Order

Page 56: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France56

Conclusion

Page 57: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France57

Conclusion

GliFreD + TI

Page 58: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France58

Conclusion

GliFreD + TI Consumes more power

Page 59: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France59

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization

Page 60: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France60

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Page 61: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France61

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Increases latency

Page 62: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France62

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Increases latency• Design and application dependent

Page 63: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France63

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Increases latency• Design and application dependent• Increases frequency → comparable throughput

Page 64: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France64

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Increases latency• Design and application dependent• Increases frequency → comparable throughput

Restricted to FPGAs

Page 65: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France65

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Increases latency• Design and application dependent• Increases frequency → comparable throughput

Restricted to FPGAs• ASIC: DPL + TI might have similar security level

Page 66: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France66

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Increases latency• Design and application dependent• Increases frequency → comparable throughput

Restricted to FPGAs• ASIC: DPL + TI might have similar security level

No provable resistance for higher-order

Page 67: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France67

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Increases latency• Design and application dependent• Increases frequency → comparable throughput

Restricted to FPGAs• ASIC: DPL + TI might have similar security level

No provable resistance for higher-order• Still 1st-order secure

Page 68: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France68

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Increases latency• Design and application dependent• Increases frequency → comparable throughput

Restricted to FPGAs• ASIC: DPL + TI might have similar security level

No provable resistance for higher-order• Still 1st-order secure

Higher-order attacks practically infeasible

Page 69: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France69

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Increases latency• Design and application dependent• Increases frequency → comparable throughput

Restricted to FPGAs• ASIC: DPL + TI might have similar security level

No provable resistance for higher-order• Still 1st-order secure

Higher-order attacks practically infeasible• EM analysis

Page 70: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France70

Conclusion

GliFreD + TI Consumes more power

• Higher resource utilization• Natural behavior of power equalization

Increases latency• Design and application dependent• Increases frequency → comparable throughput

Restricted to FPGAs• ASIC: DPL + TI might have similar security level

No provable resistance for higher-order• Still 1st-order secure

Higher-order attacks practically infeasible• EM analysis• Fair to compare with 3rd-order TI

Page 71: --what are the achievements versus overheads?--A. Wild, A. Moradi, and T. Güneysu. GliFreD: Glitch-Free Duplication – Towards Power -Equalized Circuits on FPGAs. Cryptology ePrint

Alexander Wild, CHES‘15, Saint-Malo, France

Thanks for Listening!

Any Questions?