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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Pre-Encryption Encoding for Post-Quantum IoT Messaging with ML-KEM: Comparing Static, Huffman, and Compression-Based Schemes

Thawatchai Chomsiri, Suwichai Phunsa
6 links
Sensors
Cryptographic Implementations and Security
article

Pre-Encryption Encoding for Post-Quantum IoT Messaging with ML-KEM: Comparing Static, Huffman, and Compression-Based Schemes

Thawatchai Chomsiri, Suwichai Phunsa
article en

Abstract

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.

SensorsVol. 26(23)
Mahasarakham University (TH)
Cryptographic Implementations and Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon