Authenticated encryption

AEGIS-256

Very fast AES-round-based AEAD from the CAESAR high-performance portfolio

standard Safe API

About AEGIS-256

AEGIS-256 is one of 2 AEGIS variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 32-byte (256-bit) key, a 32-byte nonce and a 16-byte (128-bit) authentication tag. Its registry entry cites draft-irtf-cfrg-aegis-aead. NextSSL lists it in the standard tier and exposes it through the safe API.

Overview

AEGIS is a family of authenticated ciphers that update a large state with the AES round function, absorbing message blocks directly into the state. AEGIS-128L and AEGIS-256 are being standardised by the IRTF CFRG.

Each AEGIS step applies one AES round to every state word in parallel and XORs in message blocks, so a single message block costs well under one full AES encryption. On processors with AES instructions, AEGIS-128L reaches throughput substantially higher than AES-GCM. AEGIS-128 was selected for the CAESAR final portfolio in the high-performance category; AEGIS-128L uses a 1024-bit state and 256-bit rate, and AEGIS-256 uses a 256-bit key and nonce.

The CFRG draft defines AEGIS-128L, AEGIS-256 and parallel X variants with 128-bit or 256-bit tags. NextSSL implements AEGIS-128L and AEGIS-256. The large nonces make random generation practical, particularly for AEGIS-256.

History

2013–2019
  1. AEGIS published by Hongjun Wu, Bart Preneel

  2. CAESAR competition for authenticated encryption announced

    CAESAR competition
  3. 57 first-round candidates published

    CAESAR competition
  4. Second round announced

    CAESAR competition
  5. Third round announced

    CAESAR competition
  6. Finalists announced

    CAESAR competition
  7. Final portfolio: Ascon, ACORN, AEGIS-128, Deoxys-II, COLM and OCB

    CAESAR competition

How it works

  1. Initialise the state from the key, nonce and fixed constants, then run several update rounds.
  2. Absorb associated data blocks by XORing them into the state during AES-round updates.
  3. Encrypt each plaintext block by XOR with a keystream derived from state words, then absorb the plaintext.
  4. Absorb the lengths, run finalisation rounds and output the tag from the state.

Security notes

AEGIS is not nonce-misuse resistant: a repeated nonce leaks plaintext information and can allow state recovery and forgeries. Use unique nonces; AEGIS-256 allows random nonces. Releasing unverified plaintext must be avoided.

Typical uses

High-throughput network and storage encryption on CPUs with AES instructionsReplacing AES-GCM where performance mattersRandom-nonce encryption with AEGIS-256

Sizes

FieldBytesMeaning
key32Secret key
nonce32Nonce / IV
tag16Authentication tag

Use it

from nextssl_demo import NextSSL

ns = NextSSL()              # safe API: safe and standard tiers
key, nonce = ns.random(32), ns.random(32)
ct = ns.call("aead_seal", "aegis256", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = ns.call("aead_open", "aegis256", None, key, nonce, b"header", ct)[0]

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

Other AEGIS variants

1

Frequently asked questions

What is AEGIS-256?

AEGIS-256 is an AEAD in the AEGIS family. AEGIS is a family of authenticated ciphers that update a large state with the AES round function, absorbing message blocks directly into the state.

What are the AEGIS-256 sizes?

In NextSSL, AEGIS-256 uses: key 32 bytes, nonce 32 bytes, tag 16 bytes.

Who designed AEGIS-256 and when?

AEGIS-256 belongs to the AEGIS family, first published in 2013 by Hongjun Wu, Bart Preneel. Its origin: CAESAR final portfolio (high performance); draft-irtf-cfrg-aegis-aead.

Which standards define AEGIS-256?

AEGIS-256 is referenced by draft-irtf-cfrg-aegis-aead.

Is AEGIS-256 safe to use?

AEGIS-256 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.

What other AEGIS variants are there?

NextSSL also registers aegis128l in the AEGIS family.