Visible to the public Usuba: High-Throughput and Constant-Time Ciphers, by Construction

TitleUsuba: High-Throughput and Constant-Time Ciphers, by Construction
Publication TypeConference Paper
Year of Publication2019
AuthorsMercadier, Darius, Dagand, Pierre-Évariste
Conference NameProceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation
PublisherAssociation for Computing Machinery
Conference LocationPhoenix, AZ, USA
ISBN Number978-1-4503-6712-7
KeywordsBitslicing, cyber physical systems, Lightweight Ciphers, Optimizing Compiler, pubcrawl, resilience, Resiliency, Scalability, vectorization
AbstractCryptographic 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.
DOI10.1145/3314221.3314636
Citation Keymercadier_usuba_2019