Paper 2026/1415
Optimized Implementation of Warp-Cooperative GPU HCTR2-ARIA Wide-Block Encryption
Abstract
HCTR2 is a wide-block encryption mode that encrypts one fixed-size message as a single unit, so that flipping a single plaintext bit re-randomizes the whole ciphertext. Its main use is disk encryption, where the message is a disk sector. We instantiate it with ARIA, the Korean national block-cipher standard, and implement it on an NVIDIA RTX 4080 GPU. With many independent messages, assigning one thread per message keeps the device occupied. At low queue depth, however, most of the GPU sits idle, and encrypting one 16 KiB message is several times slower than a single CPU core. The reason is that one HCTR2 message is internally sequential, so it cannot simply be split across threads. We present a fine-grained kernel in which one 32-thread warp cooperates on a single message. The kernel exploits the linearity of POLYVAL. It splits the long hash computation into contiguous per-thread pieces, has each thread compute a partial result, and combines the partials with warp shuffles to obtain exactly the same value as the sequential computation. This brings the latency of one message down to parity with a single CPU core (ARIA-256: 222 μs on the GPU vs. 209 μs on the CPU). Moreover, the number of threads per message and of messages per block acts as a knob that trades latency for throughput, spanning 222 μs/30 GB/s to 1774 μs/49 GB/s. With as few as four messages in flight the GPU already beats the CPU. We validate correctness for all three key sizes.
Metadata
- Available format(s)
-
PDF
- Category
- Implementation
- Publication info
- Preprint.
- Keywords
- HCTR2ARIAWide-block encryptionTweakable cipherGPUCUDABank conflictPOLYVALStorage encryption
- Contact author(s)
-
shuraatum @ gmail com
smino0906 @ gmail com
dkajdfhd1 @ gmail com
kimhaha4420 @ gmail com
hwajeong84 @ gmail com - History
- 2026-07-15: approved
- 2026-07-11: received
- See all versions
- Short URL
- https://ia.cr/2026/1415
- License
-
CC0
BibTeX
@misc{cryptoeprint:2026/1415,
author = {Siwoo Eum and Minho Song and Seung-Won Lee and Hagyeong Kim and Hwajeong Seo},
title = {Optimized Implementation of Warp-Cooperative {GPU} {HCTR2}-{ARIA} Wide-Block Encryption},
howpublished = {Cryptology {ePrint} Archive, Paper 2026/1415},
year = {2026},
url = {https://eprint.iacr.org/2026/1415}
}