Abstract
We explore the performance impact of bitslicing on implementations of the NIST PQC Round 3 Finalist Digital Signature Algorithms: Rainbow. We show that for the Ia parameters set, when not using special or vector instructions, our bitsliced implementation signs 40% faster and verifies 50% faster than the submission implementation while remaining constant time. We argue that using this technique, when combined with vector instructions might lead to substantial speed-up as well.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
The code can be found at https://github.com/FlorianF89/pqc_rainbow_signature.
- 2.
Note that, as we change the representation of internal element, there might be a slight overhead with switching back to a serialized representation but it would be simply a matter of interleaving bits.
References
Bernstein, D.J., Chou, T., Schwabe, P.: McBits: fast constant-time code-based cryptography. In: Bertoni, G., Coron, J.-S. (eds.) CHES 2013. LNCS, vol. 8086, pp. 250–272. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-40349-1_15
Biham, E.: A fast new des implementation in software. In: Biham, E. (ed.) Fast Software Encryption, pp. 260–272. Springer, Berlin Heidelberg, Berlin, Heidelberg (1997)
Chou, T.: Mcbits revisited: toward a fast constant-time code-based kem. J. Cryptographic Eng. 8(2), 95–107 (2018)
Chou, T., Kannwischer, M.J., Yang, B.Y.: Rainbow on cortex-m4. Cryptology ePrint Archive, Report 2021/532 (2021). https://eprint.iacr.org/2021/532
Ding, J., Chen, M.S., Petzoldt, A., Schmidt, D., Yang, B.Y.: Rainbow, The 2nd Round Proposal (2018). https://csrc.nist.gov/CSRC/media/Projects/Post-Quantum-Cryptography/documents/round-2/submissions/Rainbow-Round2.zip
Drucker, N., Gueron, S.: Speed up over the rainbow. Cryptology ePrint Archive, Report 2020/408 (2020). https://eprint.iacr.org/2020/408
Eron Anderson, S.: Bit twiddling hacks. https://graphics.stanford.edu/~seander/bithacks.html. Accessed 3 May 2019
NIST: Post-Quantum Cryptography Call for Proposals. https://csrc.nist.gov/Projects/Post-Quantum-Cryptography/Post-Quantum-Cryptography-Standardization/Call-for-Proposals (2018). Accessed 01 Jan 2020
Warren, H.S.: Hacker’s Delight. Addison-Wesley Longman Publishing Co., Inc, USA (2002)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Caullery, F. (2021). A (Bit)slice of Rainbow. In: Zhou, J., et al. Applied Cryptography and Network Security Workshops. ACNS 2021. Lecture Notes in Computer Science(), vol 12809. Springer, Cham. https://doi.org/10.1007/978-3-030-81645-2_18
Download citation
DOI: https://doi.org/10.1007/978-3-030-81645-2_18
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-81644-5
Online ISBN: 978-3-030-81645-2
eBook Packages: Computer ScienceComputer Science (R0)