Cryptology ePrint Archive: Report 2021/138

Classic McEliece Implementation with Low Memory Footprint

Johannes Roth and Evangelos Karatsiolis and Juliane Krämer

Abstract: The Classic McEliece cryptosystem is one of the most trusted quantum-resistant cryptographic schemes. Deploying it in practical applications, however, is challenging due to the size of its public key. In this work, we bridge this gap. We present an implementation of Classic McEliece on an ARM Cortex-M4 processor, optimized to overcome memory constraints. To this end, we present an algorithm to retrieve the public key ad-hoc. This reduces memory and storage requirements and enables the generation of larger key pairs on the device. To further improve the implementation, we perform the public key operation by streaming the key to avoid storing it as a whole. This additionally reduces the risk of denial of service attacks. Finally, we use these results to implement and run TLS on the embedded device.

Category / Keywords: public-key cryptography / Post-Quantum Cryptography, Code-Based Cryptography, Classic McEliece, Low Memory Footprint, Embedded Implementation, TLS, ARM Cortex-M4

Original Publication (in the same form): CARDIS 2020: Smart Card Research and Advanced Applications

Date: received 8 Feb 2021

Contact author: jroth at mtg de, ekaratsiolis@mtg de, juliane@qpc tu-darmstadt de

Available format(s): PDF | BibTeX Citation

Version: 20210210:073429 (All versions of this report)

Short URL:

[ Cryptology ePrint archive ]