Lightweight Block Cipher Design Gregor Leander HGI, Ruhr University - - PowerPoint PPT Presentation

lightweight block cipher design
SMART_READER_LITE
LIVE PREVIEW

Lightweight Block Cipher Design Gregor Leander HGI, Ruhr University - - PowerPoint PPT Presentation

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative Lightweight Block Cipher Design Gregor Leander HGI, Ruhr University Bochum, Germany Sardinia 2015 Motivation Industry Academia Lightweight: 2nd Generation NIST


slide-1
SLIDE 1

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Lightweight Block Cipher Design

Gregor Leander

HGI, Ruhr University Bochum, Germany

Sardinia 2015

slide-2
SLIDE 2

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Outline

1

Motivation

2

Industry

3

Academia

4

Lightweight: 2nd Generation

5

NIST Initiative

slide-3
SLIDE 3

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Outline

1

Motivation

2

Industry

3

Academia

4

Lightweight: 2nd Generation

5

NIST Initiative

slide-4
SLIDE 4

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Upcoming IT-Landscape

slide-5
SLIDE 5

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Popular Example: RFID-Tags

RFID Tag RFID=Radio-Frequency IDentification

slide-6
SLIDE 6

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Example I

Electronic Passports

slide-7
SLIDE 7

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Example II

Logistics

slide-8
SLIDE 8

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Example III

Pacemaker implants

slide-9
SLIDE 9

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Security

Question Do we want this?

slide-10
SLIDE 10

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Security

Question Do we want this? If we want it, we want it secure!

slide-11
SLIDE 11

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Attacks I

Iron attacks in Russia

slide-12
SLIDE 12

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Attacks II

Fear: Terrorist attacks on pacemaker

slide-13
SLIDE 13

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Attacks II

Fear: Terrorist attacks on pacemaker

slide-14
SLIDE 14

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Lightweight Cryptography

What is (not) Lightweight Cryptography Cryptography tailored to (extremely) constrained devices Not intended for everything Not intended for extremely strong adversaries Not weak cryptography

slide-15
SLIDE 15

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Lightweight Cryptography

Question What about standard algorithms? AES is great for almost everywhere Mainly designed for software It is too expensive for very small devices It protects data stronger than needed

slide-16
SLIDE 16

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

AES: The Swiss Army Knife

Domain Specific Cipher On specific platforms/for specific criteria one can do better.

slide-17
SLIDE 17

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Lightweight Cryptography: Industry vs. Academia

Industry Non-existence of lightweight block ciphers a real problem since the 90’s. Many proprietary solutions Often: not very good. Academia Research on Lightweight block ciphers started only recently. Several good proposals available. Developed a bit away from industry demands.

slide-18
SLIDE 18

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Outline

1

Motivation

2

Industry

3

Academia

4

Lightweight: 2nd Generation

5

NIST Initiative

slide-19
SLIDE 19

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Lightweight Ciphers in Real Life

Example (Algorithms Used In Real Products) Keeloq MIFARE DECT Kindle Cipher What they have in common: efficient proprietary/not public non standard designs not good A lot more out there...

slide-20
SLIDE 20

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Keeloq

Keeloq A 32 bit block-cipher with a 64 bit key. Developed by Gideon Kuhn (around 1985). Sold for 10M$ to Microchip Technology Inc (1995). Algorithm for remote door openers: Cars, Garage, ... Used by: Chrysler, Daewoo, Fiat, GM, Honda, Toyota, Volvo, Volkswagen Group,...

slide-21
SLIDE 21

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

KeeLoq

EUROCRYPT 2008

slide-22
SLIDE 22

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

MIFARE

MIFARE Cipher A stream cipher with an 48 bit key. widely used in contactless smart cards billions of smart card chips electronic bus and train tickets

slide-23
SLIDE 23

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

MIFARE Cipher

CARDIS 2008

slide-24
SLIDE 24

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

DECT

DECT Cipher A stream cipher with an 64 bit key. cordless home telephones 30.000.000 base station in Germany also baby phones, traffic lights, etc

slide-25
SLIDE 25

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

DECT Cipher

FSE 2010

slide-26
SLIDE 26

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Kindle

Kindle Cipher (PC1) A stream cipher with an 128 bit key. Amazons Kindle ebook DRM system

slide-27
SLIDE 27

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Kindle Cipher

SAC 2012

slide-28
SLIDE 28

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Outline

1

Motivation

2

Industry

3

Academia

4

Lightweight: 2nd Generation

5

NIST Initiative

slide-29
SLIDE 29

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Why?

Question Why do they do that? We need secure well analyzed public ciphers for highly resource constrained devices.

slide-30
SLIDE 30

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

General Design Philosophy

Guidelines/Goals Efficiency: Here mainly area Simplicity Security

slide-31
SLIDE 31

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Design Considerations: Hardware

Hardware What do things cost in hardware? Suggestion Make it an interdisciplinary project!

slide-32
SLIDE 32

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Cost Overview

Question What should/should not be used? Rule of Thumb: NOT: 0.5 GE NOR: 1 GE AND: 1.33 GE OR: 1.33 XOR: 2.67 Registers/Flipflops: 6 − 12 GE per bit!

slide-33
SLIDE 33

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Design Decisions I

Question Block size/ Key size? Storage (FF) is expensive in hardware. Block size of 128 is too much. We do not have to keep things secret forever. Decision Relative Small Block Size: 32,48 or 64 Key size: 80 bit often enough

slide-34
SLIDE 34

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Block Cipher Parts

SP-Network We have to design Non-linear-Layer Linear-Layer Key-scheduling Here we focus on the Non-linear-Layer and the Linear-Layer.

slide-35
SLIDE 35

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Design Issues

Design Issues The S-Layer has to maximize nonlinearity. It has to be cheap. The S-Layer consist of a number of Sboxes executed in parallel Si : Fb

2 → Fb 2

In hardware realized as Boolean functions.

slide-36
SLIDE 36

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Design Issues

Question Different Sboxes vs. all Sboxes the same? A serialized implementation becomes smaller if all Sboxes are the same. Decision Only one Sbox.

slide-37
SLIDE 37

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Design Issues

Question What size of Sbox? In general: The bigger the Sbox the more expensive it is in hardware.

slide-38
SLIDE 38

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Sbox Costs

Figure: Comparison of Sboxes

slide-39
SLIDE 39

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

P-Layer

Design Issues The P-Layer has to maximize diffusion. It has to be cheap. Many modern ciphers: MDS codes (great diffusion!) DES: Bit permutation (no cost!) Design Decision Use less diffusion per round Use more rounds

slide-40
SLIDE 40

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Examples

Modern Lightweight block ciphers SEA DESL PRESENT KATAN/ KTANTAN HIGHT PrintCIPHER A lot more out there...

slide-41
SLIDE 41

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

A comparison: (To be taken with care)

A fair comparison is difficult Many dimensions Depends on the technology

slide-42
SLIDE 42

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

First Example: PRESENT

PRESENT (CHES 2007) A 64 bit block cipher with 80/128 bit key and 31 rounds. Developed by RUB/DTU/ORANGE SP-network 4 bit Sbox Bit permutation as P-layer

slide-43
SLIDE 43

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

PRESENT: Overview

Figure: Overview of PRESENT

slide-44
SLIDE 44

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Second Example: KATAN

KATAN (CHES 2009) A 32/48/64 bit block cipher with 80 bit key and 254 rounds. Developed by KUL A (kind of) Feistel-cipher Highly unbalanced Inspired by Trivium Very simple non-linear function

slide-45
SLIDE 45

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

KATAN: Overview

Figure: Overview of KATAN

slide-46
SLIDE 46

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Third Example: LED

LED (CHES 2011) A 64 bit block cipher with 64 − 128 bit key and 32/48 rounds. Developed by NTU and Orange Labs A SP-network Inspired by AES Nice tweak to Mix Columns

slide-47
SLIDE 47

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LED: Overview

slide-48
SLIDE 48

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LED: Round Function

Very AES inspired: Nice Trick – Hardware friendly MDS Matrix: Very hardware friendly (but slower).

slide-49
SLIDE 49

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Overview: As Time Goes By

slide-50
SLIDE 50

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

How Far Can You Go?

Memory Given a block-size and a key-size the (minimal) memory requirements are fixed. Focus on Area Minimize the overhead to this. PRESENT: 80 percent memory KATAN: ≈ 90 percent memory Even doing nothing is not a lot cheaper!

slide-51
SLIDE 51

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

A Critical View (I)

Even doing nothing is not a lot cheaper! Good or Bad? In terms of area: Good In terms of energy: Bad

slide-52
SLIDE 52

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Progress

Design Date vs. Area

slide-53
SLIDE 53

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

A Critical View (II)

Design Date vs. Speed

slide-54
SLIDE 54

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

A Critical View (III)

Area Only There seem only a few scenarios where the only criteria is area For those good examples are available. Time To Move On Focus on other criteria!

slide-55
SLIDE 55

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Outline

1

Motivation

2

Industry

3

Academia

4

Lightweight: 2nd Generation

5

NIST Initiative

slide-56
SLIDE 56

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Time To Move On Focus on other criteria! Examples: Latency Side-channel Code-size Energy

slide-57
SLIDE 57

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Latency

Latency Time to encrypt one block

slide-58
SLIDE 58

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Latency

CHES 2012

slide-59
SLIDE 59

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

PRINCE

PRINCE (ASIACRYPT’12) A block cipher optimized for low-latency (Designed by DTU, RUB, and NXP) More precisely:

  • ne single clock cycle

low latency ⇒ high clock rates moderate hardware costs encryption and decryption with low overhead.

slide-60
SLIDE 60

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c

slide-61
SLIDE 61

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 k ⊕ α

slide-62
SLIDE 62

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 k ⊕ α R2 k ⊕ α

slide-63
SLIDE 63

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 k ⊕ α R2 k ⊕ α I−1

slide-64
SLIDE 64

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 k ⊕ α R2 k ⊕ α I

slide-65
SLIDE 65

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 k ⊕ α R2 k ⊕ α I R−1

2

k

slide-66
SLIDE 66

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 k ⊕ α R2 k ⊕ α I R−1

2

k R−1

1

m k

slide-67
SLIDE 67

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 R2 k ⊕ α I R−1

2

k R−1

1

m k (k ⊕ α)

slide-68
SLIDE 68

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 R2 I R−1

2

k R−1

1

m k (k ⊕ α) (k ⊕ α)

slide-69
SLIDE 69

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 R2 I R−1

2

R−1

1

m k (k ⊕ α) (k ⊕ α) (k ⊕ α) ⊕ α

slide-70
SLIDE 70

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 R2 I R−1

2

R−1

1

m (k ⊕ α) (k ⊕ α) (k ⊕ α) ⊕ α (k ⊕ α) ⊕ α

slide-71
SLIDE 71

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Decryption vs. Encryption

m R1 k R2 k I R−1

2

k ⊕ α R−1

1

k ⊕ α c c R1 R2 I R−1

2

R−1

1

m (k ⊕ α) (k ⊕ α) (k ⊕ α) ⊕ α (k ⊕ α) ⊕ α Enc vs. Dec Decryption is Encryption with a different key! E−1

k (m) = Ek⊕α(m)

slide-72
SLIDE 72

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Side-Channel Resistance

Side-Channel Resistance Without protection having a strong cipher is useless Therefore: Masking necessary Usual Approach

1

Design a cipher

2

Try to mask it efficiently

slide-73
SLIDE 73

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Side-Channel Resistance by Design

Usual Approach

1

Design a cipher

2

Try to mask it efficiently Better Design ciphers that are easy to mask First approach already in 2000: NOEKEON

slide-74
SLIDE 74

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

FSE 2014: LS-Designs A familiy of easy to mask block ciphers Designed by UC-Louvain and INRIA Main idea Opposite approach of what is done usually: Use tables for the linear-layer Use (few) logical operations for S-boxes Two instances: Robin Fantomas

slide-75
SLIDE 75

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns

slide-76
SLIDE 76

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns S-Box

slide-77
SLIDE 77

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns S-Box S-Box

slide-78
SLIDE 78

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns S-Box S-Box S-Box

slide-79
SLIDE 79

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns S-Box S-Box S-Box S-Box

slide-80
SLIDE 80

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns S-Box S-Box S-Box S-Box S-Box

slide-81
SLIDE 81

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns S-Box S-Box S-Box S-Box S-Box S-Box

slide-82
SLIDE 82

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns S-Box S-Box S-Box S-Box S-Box S-Box S-Box

slide-83
SLIDE 83

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns S-Box S-Box S-Box S-Box S-Box S-Box S-Box S-Box

slide-84
SLIDE 84

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns L0

slide-85
SLIDE 85

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns L0 L1

slide-86
SLIDE 86

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns L0 L1 L2

slide-87
SLIDE 87

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

LS-Designs: Structure

One box is a bit Registers correspond to columns L0 L1 L2 L3

slide-88
SLIDE 88

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Outline

1

Motivation

2

Industry

3

Academia

4

Lightweight: 2nd Generation

5

NIST Initiative

slide-89
SLIDE 89

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

NIST Lightweight Crypto

NIST Lightweight Crypto Project Started in 2015 to understand the need/ requirements/ characteristics of real world applications, to understand where the NIST-approved algorithms fall short, to bring industry/academia/government together, to think about future standardization of lightweight primitives. www.nist.gov/itl/csd/ct/lwc-project.cfm

Credit: Meltem Sonmez Turan from NIST@LightSec2015

slide-90
SLIDE 90

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

NIST Lightweight Crypto

Key-Sizes NIST will not accept key-sizes < 112 Bits. But: Tradeoffs possible (cf. PRINCE)

Credit: Meltem Sonmez Turan from NIST@LightSec2015

slide-91
SLIDE 91

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

NIST Lightweight Crypto

NIST Research Ideas New dedicated proposals, e.g.

an AE primitive for short payload new modes of operations authentication mechanisms for stream ciphers tweakableblock ciphers with small block size

Analysis recent lightweight crypto proposals, such as Present, Prince, Chaskey, Simon/Speck, etc. Analysis of smaller Keccak variants using 200, 400, 800 bits. Efficient implementations of lightweight crypto proposals

  • n constrained environments

(cf. FELICS Competition)

Credit: Meltem Sonmez Turan from NIST@LightSec2015

slide-92
SLIDE 92

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Choose your favorite

slide-93
SLIDE 93

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Choose your favorite

NSA: Simon/Speck are crows

  • thers are Koalas
slide-94
SLIDE 94

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

Conclusion

Lightweight Block Ciphers An interesting research area Interesting problems Innovative designs New insights Besides Practical Relevance Better understanding of block ciphers in general.

slide-95
SLIDE 95

Motivation Industry Academia Lightweight: 2nd Generation NIST Initiative

The End

Thank you