Pre-Encryption Encoding for Post-Quantum IoT Messaging with ML-KEM: Comparing Static, Huffman, and Compression-Based Schemes
Post-quantum messaging with ML-KEM (FIPS 203) fixes its asymmetric cost at one encapsulation per session, leaving plaintext representation as the lever for constrained devices. A recent study favored a 6-bit static code over Huffman coding for Kyber, measured outside the KEM-DEM construction with only Huffman coding charged for its table; we repeat it inside an ML-KEM-512, HKDF-SHA256, AES-256-GCM pipeline with a pre-shared state granted to every scheme. Seven encodings—the static code, pre-shared Huffman coding, zstd with and without a dictionary, heatshrink, Unishox2, and UTF-8—are measured on prose, chat, uniform, and synthetic and real telemetry corpora of 120–20,000 characters on an ×86 host and a Cortex-M4 that also runs ML-KEM-512. Encoding cuts payload by up to 56% on text and 51–61% on 120-character sensor messages—whole LoRaWAN frames, where the 768-byte ML-KEM ciphertext alone needs 16 at SF12. A 2 KB dictionary wins from 500 characters on non-uniform data, but Huffman coding keeps 120-character real sensor readings; a 120-character telemetry record encodes in 0.3 ms on the Cortex-M4 against 57 ms per encapsulation. The static code decodes 3–5× faster than a table-driven Huffman decoder on the host and 2× faster on the device. Code and data are released.
Authors
- Thawatchai Chomsiri (ORCID: https://orcid.org/0000-0001-5998-9376)
- Suwichai Phunsa (ORCID: https://orcid.org/0000-0003-1093-6999)
Institutions
- Mahasarakham University (TH)
Publication Details
- Journal
- Sensors
- Published
- 2026-12-03
- DOI
- https://doi.org/10.3390/s26237640
- Primary Topic
- Cryptographic Implementations and Security
- Type
- article
- Field-Weighted Citation Impact
- 0.00