Adapting AES-Oriented Optimizations to Rijndael-256: Cortex-M4, ARMv8-A, and CUDA
Optimizes Rijndael-256 block cipher on Cortex-M4, ARMv8-A and CUDA by adapting AES techniques, and speeds up four NIST PQC reference codebases that use R256 as their core.
Schemes: Rijndael-256, AES, AESE, NIST PQC signature candidates
Findings (quotes checked against the source text)
-
Bitsliced Cortex-M4 implementation of R256 uses secret-independent control flow and memory access patterns at 4,962 cycles per block.
This yields a bitsliced Cortex-M4 implementation with secret-independent control flow and memory access patterns (4,962 cycles/block)
-
AArch64 pre-shuffle design reuses the AESE instruction with AddRoundKey folded in, reaching up to 6,520 MB/s.
an AArch64 pre-shuffle design that reuses the AESE instruction with AddRoundKey folded in (up to 6,520 MB/s)
-
CUDA shared-memory T-table implementation of R256 reaches 81.16 GiB/s.
a CUDA shared-memory T-table implementation reaching 81.16 GiB/s
-
Replacing the R256 core in four NIST PQC reference codebases on Apple M2 yields signing speedups of 1.18x to 114.3x, with end-to-end gain governed by each scheme's R256 fraction.
yields signing speedups of $1.18\times$--$114.3\times$ and verification speedups up to $155.6\times$, with the end-to-end gain governed by each scheme's R256 fraction.
Numbers (as extracted, not quote-checked)
- R256 bitsliced Cortex-M4 cycles per block: 4,962 cycles/block
- AArch64 R256 pre-shuffle throughput: up to 6,520 MB/s
- CUDA R256 T-table throughput: 81.16 GiB/s
- Signing speedup over four PQC reference codebases on Apple M2: 1.18x to 114.3x
- Verification speedup over four PQC reference codebases on Apple M2: up to 155.6x
For builders
If a PQ scheme you use is built on R256 rather than AES, these adaptations are the implementation levers to benchmark; otherwise the paper is only indirectly useful.
Limits
Based on abstract only (full text not read per IACR rules); R256 is not a standardized PQ primitive here, and the speedups depend on each scheme's R256 fraction.
Topics: implementation-sidechannel benchmarks sig-other hash-functions