performance analysis of contemporary lightweight block
play

Performance Analysis of Contemporary Lightweight Block Ciphers on - PowerPoint PPT Presentation

Performance Analysis of Contemporary Lightweight Block Ciphers on 8-bit Microcontrollers Sren Rinne, Thomas Eisenbarth, and Christof Paar Horst Grtz Institute for IT Security Ruhr-Universitt Bochum, Germany 11.06.2007 SPEED Workshop,


  1. Performance Analysis of Contemporary Lightweight Block Ciphers on 8-bit Microcontrollers Sören Rinne, Thomas Eisenbarth, and Christof Paar Horst Görtz Institute for IT Security Ruhr-Universität Bochum, Germany 11.06.2007 SPEED Workshop, Amsterdam

  2. Overview 1. Motivation • Embedded Systems • Our Platform 2. Implemented Ciphers • Overview of Ciphers • Implementation Criteria 3. Results and Comparison • Code Size • Throughput 11.06.2007, Slide 2

  3. What are Embedded Systems? Embedded + = = System • „Processor hidden in a product“, or • „A computer that doesn‘t look like a computer“ • Single purpose device • Interacts with the world 11.06.2007, Slide 3

  4. Is this really important? Current CPU market PC and Workstation CPUs (32 .. 64 bit) by the numbers 2 % all Embedded CPUs (4 ..32 bit) 98 % 11.06.2007, Slide 4

  5. Lightweight Ciphers Motivation: - Ubiquitous computing evolves - New lightweight ciphers are being proposed Main Question: Are lightweight ciphers able to outperform the AES on constrained devices? 11.06.2007, Slide 5

  6. Chosen Platform 8-bit Microcontroller 8-bit Atmel AVR processor: • e.g. ATmega family: • ~130 instructions, most of them single cycle (RISC architecture) • 32 general purpose registers of 8 bit size • 8 - 128 kBytes of program memory (FLASH) • 1 - 4 kBytes of volatile memory (SRAM) • several Power Savings modes 11.06.2007, Slide 6

  7. Overview 1. Motivation • Embedded Systems • Our Platform 2. Implemented Ciphers • Overview of Ciphers • Implementation Criteria 3. Results and Comparison • Code Size • Throughput 11.06.2007, Slide 7

  8. Discussed Ciphers Cipher Cipher remark Presented at DES(X) DESX: key whitening FIPS 46 1976 (X)TEA Arithmetic operations only FSE 1994 AES DES successor FIPS 197 1997 SEA Parametric in text, key and ECRYPT Workshop 2005 processor size HIGHT 8-bit oriented, high throughput CHES 2006 DES-L Single S-Box design FSE 2007 PRESENT Small outline SPN CHES 2007 Cipher DES DESX TEA XTEA AES SEA HIGHT DES-L PRESENT Block length 64 64 64 64 128 96 64 64 64 Key length 56 184 128 128 128 96 128 56 80 Rounds 16 16 32 32 10 141 32 16 32 11.06.2007, Slide 8

  9. PRESENT Hard facts: • 64 Bit block length • 80 Bit key length • 32 rounds Performed operations: • XOR with key • 4x4 bit S-Box • Bit permutation Designed for hardware implementation 11.06.2007, Slide 9

  10. Design Criteria Major design goal of embedded devices : Low Costs Security: Lightweight Crypto Performance: Small Payloads Response Time Cost: Device Cost Overall System Cost 11.06.2007, Slide 10

  11. Implementation Step Performance: Response time and availability Device cost: small code size � cheaper device System cost: wireless devices � power consumption Execution time is cost in energy storage!!! We focus on cost: code size-performance trade off 11.06.2007, Slide 11

  12. Overview 1. Motivation • Embedded Systems • Our Platform 2. Implemented Ciphers • Overview of Ciphers • Implementation Criteria 3. Results and Comparison • Code Size • Throughput 11.06.2007, Slide 12

  13. Results - Our Implementations Ciphers implemented in Assembly language • reduces code size • yields higher performance Keep code size small wherever performance is not reduced too much. • Keep all states in registers • on the fly key scheduling (no SRAM usage) • only small LUTs (8-bit S-boxes) that give a good performance – code-size tradeoff • no macros (no loop unrolling) 11.06.2007, Slide 13

  14. Results – Code Size 6000 Code size [byte] 5000 4000 3000 2000 1000 0 PRESENT TEA XTEA SEA DESL AES DES DESX HIGHT 11.06.2007, Slide 14

  15. Results – Throughput 160000 Throughput of Encryption 140000 [bit/sec] 120000 Throughput of Decryption [bit/sec] 100000 80000 60000 40000 20000 0 AES HIGHT TEA SEA XTEA DESL DES DESX PRESENT 11.06.2007, Slide 15

  16. Results – Throughput- Code Size Ratio 45,00 Throughput-Code size ratio 40,00 of Encryption 35,00 Throughput-Code size ratio 30,00 of Decryption 25,00 20,00 15,00 10,00 5,00 0,00 AES TEA XTEA PRESENT SEA HIGHT DESL DES DESX 11.06.2007, Slide 16

  17. Concluding Remarks Generally AES seems to be the best allround choice. For small code size (X)TEA and even PRESENT seem to be a decent choice Results will be put on the web, together with other implementations for the focused platform: www.lightweightcrypto.org www.lightweightcrypto.org 11.06.2007, Slide 17

  18. Thanks for your attention! eisenbarth@crypto.rub.de eisenbarth@crypto.rub.de 11.06.2007 SPEED Workshop, Amsterdam

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend