Title | Usuba: High-Throughput and Constant-Time Ciphers, by Construction |
Publication Type | Conference Paper |
Year of Publication | 2019 |
Authors | Mercadier, Darius, Dagand, Pierre-Évariste |
Conference Name | Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation |
Date Published | June 2019 |
Publisher | Association for Computing Machinery |
Conference Location | Phoenix, AZ, USA |
ISBN Number | 978-1-4503-6712-7 |
Keywords | Bitslicing, cyber physical systems, Lightweight Ciphers, Optimizing Compiler, pubcrawl, resilience, Resiliency, Scalability, vectorization |
Abstract | Cryptographic primitives are subject to diverging imperatives. Functional correctness and auditability pushes for the use of a high-level programming language. Performance and the threat of timing attacks push for using no more abstract than an assembler to exploit (or avoid!) the micro-architectural features of a given machine. We believe that a suitable programming language can reconcile both views and actually improve on the state of the art of both. Usuba is an opinionated dataflow programming language in which block ciphers become so simple as to be ``obviously correct'' and whose types document and enforce valid parallelization strategies at the granularity of individual bits. Its optimizing compiler, Usubac, produces high-throughput, constant-time implementations performing on par with hand-tuned reference implementations. The cornerstone of our approach is a systematization and generalization of bitslicing, an implementation trick frequently used by cryptographers. |
URL | https://dl.acm.org/doi/10.1145/3314221.3314636 |
DOI | 10.1145/3314221.3314636 |
Citation Key | mercadier_usuba_2019 |