AES-PMAC
Rogaway's fully parallelisable block-cipher MAC
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–2002PMAC 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 – 32 | Secret key |
| tag | 16 | Authentication 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)
nextssl_root_mac("aes-pmac", NULL, key, data, 0, tag);
nextssl_root_mac_verify("aes-pmac", NULL, key, data, tag);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_mac_in(reg::all(), Policy::Any, "aes-pmac", &Params::new())?;
let tag = alg.tag(&key, b"message")?;
let ok = alg.verify(&key, b"message", &tag)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More message authentication codes
All 30Frequently 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).