Paper 2022/124
On the Performance Gap of a Generic C Optimized Assembler and Wide Vector Extensions for Masked Software with an Ascon-{\it{p}} test case
Abstract
Efficient implementations of software masked designs constitute both an important goal and a significant challenge to Side Channel Analysis attack (SCA) security. In this paper we discuss the shortfall between generic C implementations and optimized (inline-) assembly versions while providing a large spectrum of efficient and generic masked implementations for any order, and demonstrate cryptographic algorithms and masking gadgets with reference to the state of the art. Our main goal is to show the prime performance gaps we can expect between different implementations and suggest how to harness the underlying hardware efficiently, a daunting task for various masking-orders or masking algorithm (multiplications, refreshing etc.).
This paper focuses on implementations targeting wide vector bitsliced designs such as the ISAP algorithm. We explore concrete instances of implementations utilizing processors enabled by wide-vector capability extensions of the AMD64 Instruction Set Architecture (ISA); namely, the SSE2/3/4.1, AVX-2 and AVX-512 Streaming Single Instruction Multiple Data (SIMD) extensions. These extensions mainly enable efficient memory level parallelism and provide a gradual reduction in computation-time as a function of the level of extension and the hardware support for instruction-level parallelism. For the first time we provide a complete open-source repository of such gadgets tailored for these extensions, various gadgets types and for all orders.
We evaluate the disparities between
Metadata
- Available format(s)
-
PDF
- Category
- Implementation
- Publication info
- Preprint.
- Keywords
- AVX Countermeasures Code-Size Low-Cost Masking Side-Channel Analysis Security Order SIMD SSE
- Contact author(s)
-
dorsal1464 @ gmail com
itamar levi @ biu ac il - History
- 2022-11-24: revised
- 2022-02-09: received
- See all versions
- Short URL
- https://ia.cr/2022/124
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2022/124, author = {Dor Salomon and Itamar Levi}, title = {On the Performance Gap of a Generic C Optimized Assembler and Wide Vector Extensions for Masked Software with an Ascon-{\it{p}} test case}, howpublished = {Cryptology {ePrint} Archive, Paper 2022/124}, year = {2022}, url = {https://eprint.iacr.org/2022/124} }