Implementation on FPGA - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English

The GMAC algorithm is shown as the figure below:

GMAC algorithm flow chart

We support GMAC using AES block cipher in this implementation.

Attention

The bit-width of the interfaces we provide is shown as follows:

  data lenData cipherkey IV tag
GMAC-AES128 128 64 128 96 128
GMAC-AES192 128 64 192 96 128
GMAC-AES256 128 64 256 96 128

Caution

Applicable conditions:

1. The bit-width of initialization vector must be precisely 96 as recommended in the standard to promote interoperability, efficiency, and simplicity of the design.

The internal structure of GMAC is shown in the figure below:

Structure of GMAC

As we can see from the chart, the GMAC can be divided into two individual parts: The preGMAC and genGMAC. These two parts can work independently, so they are designed into parallel dataflow processes, connected by streams (FIFOs).

There is an overload genGMAC for Galois/Counter Mode (GCM) cipher mode of operation, as it must work with the structure of GCM, the interface of the overload is a little bit more complex than the overload for GMAC.