Compact-LWE: Enabling Practically Lightweight Public Key Encryption for Leveled IoT Device Authentication

Dongxi Liu, Nan Li, Jongkil Kim, Surya NepalIACR ePrint 2017

Abstract

Internet of Things (IoT) devices operating on the edge require secure, lightweight public-key encryption (PKE) that fits within the severe constraints of 16-bit processors and low-bandwidth networks. This paper presents Compact-LWE, a novel lattice-based encryption scheme that introduces secret scaling of errors and dense lattices to achieve high security (128-bit+) with remarkably short ciphertexts (176 bits). We demonstrate the scheme's efficiency on ultra-constrained hardware and its application in a "leveled" authentication protocol, allowing security strength to be dynamically tuned to the task at hand.

Introduction

IoT devices often run on minimal hardware, such as 16-bit processors with limited RAM, communicating over low-bandwidth networks like 6LoWPAN. Traditional PKE standards like RSA or ECC are often too computationally expensive or power-hungry for these environments. While lattice-based cryptography, such as Learning With Errors (LWE), is quantum-resistant and generally efficient, it typically suffers from "ciphertext expansion," where a small message results in a ciphertext thousands of bits long. This expansion is a significant barrier for IoT protocols where every transmitted byte impacts battery life. Compact-LWE addresses these challenges by optimizing parameters for ultra-constrained environments while supporting leveled authentication.

The Compact-LWE Mechanism

The core innovation of this work is the Compact-LWE problem (Learning With Secretly Scaled Errors in Dense Lattice). The scheme employs several key strategies to reduce overhead while maintaining security:

  1. Secret Scaling ($k$): Unlike standard LWE where an error is simply added, Compact-LWE multiplies the error by a secret value $k$ before addition. This modification thwarts standard Closest Vector Problem (CVP) approaches used in lattice attacks.
  2. Dense Lattices: The public vector $a$ is sampled from a smaller range than usual, creating a "denser" lattice. In this environment, even if an attacker can solve the CVP, they encounter too many candidate points, making it nearly impossible to identify the correct secret.
Figure 1: Visualization of the dense lattice structure. The target point (plus sign) is obscured among numerous points not on the lattice (circles), increasing the difficulty of identification for attackers.
  1. Small Dimensions ($n$): The combination of dense lattices and secret scaling allows the dimension parameter $n$ to be reduced significantly (to $n=13$). Standard LWE typically requires $n > 100$ for comparable security. This reduction directly results in much smaller ciphertexts.

Implementation and Performance

The authors evaluated Compact-LWE on the MTM-CM5000-MSP wireless sensor node, featuring an 8MHz TI MSP430 processor and 10KB of RAM, running the Contiki operating system.

Key Results

  • Efficiency: On the 8MHz processor, the scheme performs 50 encryptions and 500 decryptions per second, outperforming other lightweight lattice variants even those running on faster 32MHz ARM processors.
  • Compactness: The scheme generates 176-bit ciphertexts for 16-bit messages at a security level exceeding 128 bits. This is a massive improvement over other lightweight schemes that may produce ciphertexts exceeding 3,500 bits.
  • Deterministic Decryption: Unlike many probabilistic lattice schemes, Compact-LWE is designed for 100% decryption success, which is critical for reliable IoT operations.
  • Leveled Authentication: By adapting the Needham-Schroeder-Lowe (NSL) protocol, devices can choose an authentication level (1 to 16) based on risk. Total authentication time ranged from 640ms to 8373ms, with cryptographic computation taking only a small fraction (46ms to 445ms).

Discussion and Future Work

Compact-LWE provides a highly efficient solution for IoT security, though some challenges remain. While ciphertexts are tiny, the public key size (2368 bits) is still larger than ECC keys. The authors suggest manufacturers could share parts of the key among devices to mitigate this. Furthermore, as a new cryptographic primitive, Compact-LWE requires continued "battle-testing" by the cryptanalysis community to validate the hardness of its specific assumptions. Future work will also explore scaling the scheme for larger data payloads without losing its efficiency advantages.

Summary updated

BibTeX
@article{liu2017compact,
  author = {Dongxi Liu and Nan Li and Jongkil Kim and Surya Nepal},
  title = {{Compact-LWE: Enabling Practically Lightweight Public Key Encryption for Leveled IoT Device Authentication}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2017},
}
Figure