Efficient implementation of the Galois Counter Mode using a carry-less multiplier and a fast reduction algorithm

Shay Gueron, Michael Kounavis

Research output: Contribution to journalArticlepeer-review

Abstract

This paper describes a new method for efficient implementation of the Galois Counter Mode on general purpose processors. Our approach is based on three concepts: a) having a 64-bit carry-less multiplication instruction in the processor; b) a method for using this instruction to efficiently multiply binary polynomials of degree 127; c) a method for efficient reduction of a binary polynomial of degree 254, modulo the polynomial x128 + x7 + x2 + x + 1 (which defines the finite field of the Galois Counter Mode). The two latter concepts can be used for writing an efficient and lookup-table free software implementation of the Galois Counter Mode, for processors that have a carryless multiplication instruction. Our approach uses only a generic carry-less multiplication instruction, without any field-specific reduction logic, making the instruction applicable to multiple use cases, and therefore an appealing addition to the instruction set of a general purpose processor. This research played a significant role in the process that eventually led to adding a carry-less multiplication instruction (called PCLMULQDQ) to the Intel Architecture. PCLMULQDQ and six AES instructions are introduced in the new 2010 Intel Core processor family, based on the 32 nm Intel microarchitecture codename "Westmere". On the new Westmere processors, the software that implements the methods described here, computes AES-GCM more than six times faster than the current, lookup table-based, state-of-the-art implementation. This new capability adds motivation to using AES-GCM for high performance secure networking.

Original languageEnglish
Pages (from-to)549-553
Number of pages5
JournalInformation Processing Letters
Volume110
Issue number14-15
DOIs
StatePublished - 1 Jul 2010

Keywords

  • AES-GCM
  • Authenticated encryption
  • Cryptography
  • Galois fields
  • Message authentication

ASJC Scopus subject areas

  • Theoretical Computer Science
  • Signal Processing
  • Information Systems
  • Computer Science Applications

Fingerprint

Dive into the research topics of 'Efficient implementation of the Galois Counter Mode using a carry-less multiplier and a fast reduction algorithm'. Together they form a unique fingerprint.

Cite this