Official implementation of paper "HiAE: A High-Throughput Authenticated Encryption Algorithm for Cross-Platform Efficiency"
The HiAE is an AES-based AEAD cipher that mainly focuses on cross-platform efficiency(ARM and x86) and achieves the fastest speed on the latest ARM and x86 architectures.
View the full speed benchmark here
gcc -O3 -march=native -I code code/*.c test/performance_test.c -o perf_test
./perf_test
The File verification with HiAE MAC mode.
compile
gcc -O3 -march=native -I code code/*.c app/HiAE-MAC.c -o HiAE-MAC
Usage
./HiAE-MAC <input_file> <key> <iv> [buffer_size (MB)]
Example
$ ./HiAE-MAC README.md 1926 0817
KEY = 1926000000000000000000000000000000000000000000000000000000000000
IV = 08170000000000000000000000000000
MAC: c9e1326675a5e70c3609c8eacfe89b83
MAC file README.md (2079 bytes) in 0.000100 seconds
Speed: 0.019362 GB/s
The File encryption will auto append the AEAD tag after the file for integrity protection.
compile
gcc -O3 -march=native -I code code/*.c app/HiAE-File-AEAD.c -o HiAE-File-AEAD
Usage
./HiAE-File-AEAD <encrypt/decrypt> <input_file> <output_file> <key> <iv> [buffer_size (MB)]
Example
$ ./HiAE-File-AEAD encrypt README.md README.enc 1926 0817
KEY = 1926000000000000000000000000000000000000000000000000000000000000
IV = 08170000000000000000000000000000
Encrypted README.md to README.enc (2079 bytes) in 0.000178 seconds
Speed: 0.010878 GB/s
$ ./HiAE-File-AEAD decrypt README.enc README.md 1926 0817
KEY = 1926000000000000000000000000000000000000000000000000000000000000
IV = 08170000000000000000000000000000
Authorization Passed.
Decrypted README.enc to README.md (2079 bytes) in 0.000220 seconds
Speed: 0.008801 GB/s
I would like to extend my heartfelt thanks to the following individuals for their assistance in testing the performance data:
- XIE Wenzheng @ SCUT
- ZHANG Tianle @ SCUT
- ZHU Di @ SYSU
- YE Fengwei @ SYSU
- ZHENG Haowen @ NCKU
- FU Ze @ BIT
- SU Changran @ NJU
Their contributions were crucial in ensuring the scalability of HiAE across various platforms.
@misc{HiAE,
author = {Han Chen and Tao Huang and Phuong Pham and Shuang Wu},
title = {HiAE: A High-Throughput Authenticated Encryption Algorithm for Cross-Platform Efficiency},
howpublished = {Cryptology {ePrint} Archive, Paper 2025/377},
year = {2025},
url = {https://eprint.iacr.org/2025/377}
}