Paper 2025/2171

Efficient GHASH and POLYVAL Implementation Using Polynomial Multiplication: Optimized 64-bit Decomposition with Bit-Reversal Elimination

Mamone Tarsha Kurdi
Niels Möller
Abstract

We present an optimized implementation of the GHASH and POLYVAL authentication algorithms used in AES-GCM and AES-GCM-SIV that eliminates the computational overhead of bit-reversal operations. Our approach computes these universal hash functions directly in bit-reversed representation, matching the native format used by carry-less multiplication instructions available on modern processors. The algorithm exploits 64-bit polynomial primitives and parallel execution on superscalar architectures. We achieve performance of 0.34 cycles/byte on POWER9 (35% faster than OpenSSL) and 0.33 cycles/byte on Intel Comet Lake (11% faster than OpenSSL), representing a 32-fold improvement over table-based software implementations. Combined with hardware accelerated AES, the complete AES-GCM mode achieves 1.12 cycles/byte throughput. For platforms with hardware carry-less multiplication (x86 PCLMULQDQ, ARM PMULL, PowerPC vpmsumd), the R/F algorithm achieves ∼1.7× speedup over Karatsuba. For portable software implementations without hardware acceleration, we demonstrate that Karatsuba remains 1.4-1.6× faster due to reduced multiplication count.

Note: In the last submission I forgot to add the co-author of this paper.

Metadata
Available format(s)
PDF
Category
Cryptographic protocols
Publication info
Preprint.
Keywords
GCM GCM-SIV GHASH POLYVAL
Contact author(s)
maamoun tk @ gmail com
History
2025-12-01: approved
2025-11-29: received
See all versions
Short URL
https://ia.cr/2025/2171
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/2171,
      author = {Mamone Tarsha Kurdi and Niels Möller},
      title = {Efficient {GHASH} and {POLYVAL} Implementation Using Polynomial Multiplication: Optimized 64-bit Decomposition with Bit-Reversal Elimination},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/2171},
      year = {2025},
      url = {https://eprint.iacr.org/2025/2171}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.