Authenticated encryption

Aes128poetv2aes128ni

Pipelineable online encryption with tag; a CAESAR misuse-resistant design

unverified Root API only
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Aes128poetv2aes128ni

Aes128poetv2aes128ni is an authenticated encryption (AEAD) scheme from the POET family. It uses a 16-byte (128-bit) key, a 16-byte nonce and a 16-byte (128-bit) authentication tag. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

Overview

POET is an online authenticated cipher that wraps an AES encryption between two chained hash layers, aiming for security under nonce reuse up to common-prefix leakage. It was a CAESAR round 2 candidate.

Each block is processed as: XOR with a running top chaining value, multiply or hash into that chain, encrypt with AES, then pass through a second, bottom chaining layer. The two chains make the mode online and pipelineable while giving every ciphertext block dependence on all earlier plaintext.

Cryptanalysis during the competition targeted the universal hash layers, and version 2 changed them to use AES-based functions. NextSSL includes two version 2 builds: aes128 uses full ten-round AES in the hash layers, and aes4 uses four-round AES, which is faster but has a smaller security margin. The ni suffix indicates AES-NI implementations.

History

2013–2019
  1. CAESAR competition for authenticated encryption announced

    CAESAR competition
  2. POET published

  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

Security notes

Misuse resistance is limited to the online notion and the birthday bound. Earlier POET hash instantiations were broken, and the reduced-round variant should be treated with caution.

Typical uses

Research on online misuse-resistant AEHistorical comparison with COPA and COLM

Sizes

FieldBytesMeaning
key16Secret key
nonce16Nonce / IV
tag16Authentication tag

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
key, nonce = root.random(16), root.random(16)
ct = root.call("aead_seal", "aes128poetv2aes128ni", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "aes128poetv2aes128ni", 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.

Frequently asked questions

What is Aes128poetv2aes128ni?

Aes128poetv2aes128ni is an AEAD in the POET family. POET is an online authenticated cipher that wraps an AES encryption between two chained hash layers, aiming for security under nonce reuse up to common-prefix leakage.

What are the Aes128poetv2aes128ni sizes?

In NextSSL, Aes128poetv2aes128ni uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.

Who designed Aes128poetv2aes128ni and when?

Aes128poetv2aes128ni belongs to the POET family, first published in 2014 by Farzaneh Abed, Scott Fluhrer, Christian Forler, Eik List, Stefan Lucks, David McGrew, Jakob Wenzel. Its origin: CAESAR round 2 candidate.

Is Aes128poetv2aes128ni safe to use?

Aes128poetv2aes128ni is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).