Compact-slicing: a fast software implementation for linear permutation on IoT devices
In resource-constrained IoT devices, large amounts of sensitive data must be protected by cryptographic algorithms, making implementation efficiency a critical factor under limited computational and memory resources. As a key component of cryptographic algorithms, bit-level linear permutations are efficiently implemented in hardware, but their software implementations are not satisfactory. To further reduce resource consumption and shorten the execution time of cryptographic algorithms, we propose a new approach called compact-slicing. Unlike traditional bit slicing, which allocates an independent register for each slice, the compact-slicing approach leverages the operational consistency of linear permutations to merge slices with the same operation into the same register. Furthermore, it exploits the periodicity of the linear permutation to decompose multiple rounds of linear permutations into a composite operation of several simple permutations that can be completed in low clock cycles. It effectively reduces register overhead, improves register reuse efficiency, and reduces reliance on memory accesses. We evaluate compact-slicing on Cortex-M3 using PRESENT (inter-slice) and GIFT-64 (intra-slice). With round keys pre-processed, compact-slicing halves the number of constantly occupied registers and reduces peak register usage by 33.3% and 38.5% relative to the two-round unrolled bit-sliced and fix-slicing, respectively. The linear permutation and total cycle counts of PRESENT decrease by 56.3% and 35.0%, whereas the total cycle count of GIFT-64 increases by only 0.6%. With the round key update, total cycle counts decrease by 14.9–21.2% for PRESENT and 16.1–24.1% for GIFT-64, depending on the key-scheduling strategy. These results highlight its suitability for resource-constrained single-block processing.
Authors
- Yuehua Huang (ORCID: https://orcid.org/0000-0002-7177-7285)
- Bin Yu (ORCID: https://orcid.org/0000-0002-3128-7441)
- Ying Guo (ORCID: https://orcid.org/0000-0002-5330-656X)
- Wenfen Liu (ORCID: https://orcid.org/0000-0001-5601-8347)
- Wen Chen (ORCID: https://orcid.org/0000-0002-6630-5793)
Institutions
- Guilin University of Electronic Technology (CN)
Publication Details
- Journal
- Journal of King Saud University - Computer and Information Sciences
- Published
- 2026-11-23
- DOI
- https://doi.org/10.1007/s44443-026-01420-z
- Primary Topic
- Cryptographic Implementations and Security
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Guangxi Province
- Division of Graduate Education