Efficient Ring-LWE Encryption on 8-Bit AVR Processors

被引:60
作者
Liu, Zhe [1 ]
Seo, Hwajeong [2 ]
Roy, Sujoy Sinha [3 ]
Grossschadl, Johann [1 ]
Kim, Howon [2 ]
Verbauwhede, Ingrid [3 ]
机构
[1] Univ Luxembourg, 6 Rue Richard Coudenhove Kalergi, L-1359 Luxembourg, Luxembourg
[2] Pusan Natl Univ, Busan 609735, South Korea
[3] Katholieke Univ Leuven, B-3001 Leuven Heverlee, Belgium
来源
CRYPTOGRAPHIC HARDWARE AND EMBEDDED SYSTEMS - CHES 2015 | 2015年 / 9293卷
基金
英国工程与自然科学研究理事会;
关键词
Ring learning with errors (Ring-LWE); Public-key encryption; Number-theoretic transform; Discrete Gaussian sampling; ELLIPTIC CURVE CRYPTOGRAPHY;
D O I
10.1007/978-3-662-48324-4_33
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Public-key cryptography based on the "ring-variant" of the Learning with Errors (ring-LWE) problem is both efficient and believed to remain secure in a post-quantum world. In this paper, we introduce a carefully-optimized implementation of a ring-LWE encryption scheme for 8-bit AVR processors like the ATxmega128. Our research contributions include several optimizations for the Number Theoretic Transform (NTT) used for polynomial multiplication. More concretely, we describe the Move-and-Add (MA) and the Shift-Add-Multiply-Subtract-Subtract (SAMS2) technique to speed up the performance-critical multiplication and modular reduction of coefficients, respectively. We take advantage of incompletely-reduced intermediate results to minimize the total number of reduction operations and use a special coefficient-storage method to decrease the RAM footprint of NTT multiplications. In addition, we propose a byte-wise scanning strategy to improve the performance of a discrete Gaussian sampler based on the Knuth-Yao random walk algorithm. For medium-term security, our ring-LWE implementation needs 590 k, 672 k, and 276 k clock cycles for key-generation, encryption, and decryption, respectively. On the other hand, for long-term security, the execution time of key-generation, encryption, and decryption amount to 2.2M, 2.6 M, and 686 k cycles, respectively. These results set new speed records for ring-LWE encryption on an 8-bit processor and outperform related RSA and ECC implementations by an order of magnitude.
引用
收藏
页码:663 / 682
页数:20
相关论文
共 31 条
[1]  
[Anonymous], 2013, THESIS
[2]  
[Anonymous], 2015343 ARCH
[3]  
[Anonymous], IACR CRYPTOLOGY EPRI
[4]  
[Anonymous], 18 DES AUT TEST EUR
[5]  
[Anonymous], P 1 INT WORKSH SEC I
[6]  
[Anonymous], 51 ANN DES AUT C DAC
[7]  
[Anonymous], SPEED RECORDS IDEAL
[8]  
[Anonymous], 2014, IACR CRYPTOL EPRINT
[9]  
[Anonymous], 1990, Introduction to Algorithms
[10]  
[Anonymous], TECHNICAL REPORT