Message authentication codes

AES-PMAC

Rogaway's fully parallelisable block-cipher MAC

research Root API only
Research tier.

Experimental or unclassified. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About AES-PMAC

AES-PMAC is a message authentication code from the PMAC family. It uses a 16–32-byte key and a 16-byte (128-bit) authentication tag. Its registry entry cites Rogaway PMAC1 (2002). NextSSL lists it in the research tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

Overview

PMAC is a block-cipher-based message authentication code designed by John Black and Phillip Rogaway in 2002. Unlike CBC-MAC and CMAC, every block can be processed independently, so it can use parallel hardware and allows incremental updates.

PMAC masks each message block with a distinct offset derived from the encryption of zero via Gray-code sequences of field doublings, encrypts each masked block, and XORs the results together. The final block is handled specially, and the XOR sum is encrypted once more to produce the tag. Because no block depends on another's ciphertext, the encryptions can run concurrently.

NextSSL includes AES-PMAC following Rogaway's PMAC1. PMAC was never adopted as a NIST mode, but its offset technique was carried into the OCB authenticated-encryption family. PMAC is also the basis of PMAC-SIV and other parallel deterministic modes. Its parallelism matters most on wide hardware or for very long messages, where CMAC's sequential chaining becomes a bottleneck.

History

2002–2002
  1. PMAC published by John Black, Phillip Rogaway

Security notes

PMAC has a proof of security up to the birthday bound of the block size, similar to CMAC. It is less widely implemented and so is tiered as research in NextSSL.

Typical uses

Parallel or incremental message authenticationResearch on offset-based modes such as OCB

Sizes

FieldBytesMeaning
key16 – 32Secret key
tag16Authentication tag

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'research' is reachable from the root API only
key = root.random(16)
tag = root.call("mac", "aes-pmac", None, key, b"message", 0)[0]
ok  = root.check("mac_verify", "aes-pmac", None, key, b"message", tag)

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is AES-PMAC?

AES-PMAC is a MAC in the PMAC family. PMAC is a block-cipher-based message authentication code designed by John Black and Phillip Rogaway in 2002.

What are the AES-PMAC sizes?

In NextSSL, AES-PMAC uses: key 16 to 32 bytes, tag 16 bytes.

Who designed AES-PMAC and when?

AES-PMAC belongs to the PMAC family, first published in 2002 by John Black, Phillip Rogaway. Its origin: Rogaway PMAC1.

Which standards define AES-PMAC?

AES-PMAC is referenced by Rogaway PMAC1 (2002).

Is AES-PMAC safe to use?

AES-PMAC is in the research tier. Experimental or unclassified. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).