Post-Quantum Cryptography on the VEGA ET1031: Verified Cycle Counts for ML-KEM, ML-DSA and SLH-DSA on an Indian RISC-V Microcontroller
We report measurements on silicon of the three NIST post-quantum standards, ML-KEM (FIPS 203), ML-DSA (FIPS 204) and SLH-DSA (FIPS 205), on C-DAC's VEGA ET1031, a 32-bit RV32IM core designed in India, running at 100 MHz on an ARIES ECO board. We measure the portable C implementations from PQClean and slhdsa-c, built with GCC 10.2, using the core's 64-bit cycle and instruction-retired counters. Every key, ciphertext, shared secret and signature produced on the board is checked byte for byte against a native build of the same code. ML-KEM-768 encapsulation takes 21.5 ms and decapsulation 24.9 ms; ML-DSA-44 signs in a median of 85.2 ms and verifies in 41.1 ms; SLH-DSA-SHA2-128f signs in 5.59 s. All schemes fit in the board's 250 KB of SRAM, with peak stack from 3.4 KB (SLH-DSA) to 119 KB (ML-DSA-87 signing). The core runs this code at 1.03 to 1.27 cycles per instruction, and QEMU instruction counts match the silicon to within 6 instructions for every operation, and to exactly 2 for every ML-KEM and ML-DSA operation. For the same portable code, the ET1031 needs 1.8–2.2 times the cycles of an Arm Cortex-M4 (pqm4) and 4–25% fewer than an Arm Cortex-M0+. Disabling GCC's pre-register-allocation instruction scheduler (-fno-schedule-insns) cuts measured time by 18–30% for ML-KEM-768 and ML-DSA-44 and code size by 11–14%, with identical outputs, which brings the gap to the Cortex-M4 down to about 1.45 times. This quantifies on an in-order embedded core a register-pressure problem that GCC developers documented for RISC-V in 2024. Code and data: the measurement tool, rvpqc, and all raw results (board measurements and the QEMU cross-check) are open source at https://github.com/ssmind5tech/rvpqc under the MIT licence.
Authors
- Sivaram Prasad Sunkara
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24714234
- Primary Topic
- Cryptography and Residue Arithmetic
- Type
- preprint