Cryptology ePrint Archive: Report 2019/829

Batch Binary Weierstrass

Billy Bob Brumley and Sohaib ul Hassan and Alex Shaindlin and Nicola Tuveri and Kide Vuojärvi

Abstract: Bitslicing is a programming technique that offers several attractive features, such as timing attack resistance, high amortized performance in batch computation, and architecture independence. On the symmetric crypto side, this technique sees wide real-world deployment, in particular for block ciphers with naturally parallel modes. However, the asymmetric side lags in application, seemingly due to the rigidity of the batch computation requirement. In this paper, we build on existing bitsliced binary field arithmetic results to develop a tool that optimizes performance of binary fields at any size on a given architecture. We then provide an ECC layer, with support for arbitrary binary curves. Finally, we integrate into our novel dynamic OpenSSL engine, transparently exposing the batch results to the OpenSSL library and linking applications to achieve significant performance and security gains for key pair generation, ECDSA signing, and (half of) ECDH across a wide range of curves, both standardized and non-standard.

Category / Keywords: implementation / public-key cryptography, elliptic curve cryptosystem, implementation, software implementation, batching, bitslicing, OpenSSL

Date: received 17 Jul 2019

Contact author: billy brumley at tuni fi

Available format(s): PDF | BibTeX Citation

Version: 20190718:065805 (All versions of this report)

Short URL:

[ Cryptology ePrint archive ]