Authenticated encryption

Aes256otrpv3

Inverse-free, parallel AES mode using a two-round Feistel per block pair

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 Aes256otrpv3

Aes256otrpv3 is an authenticated encryption (AEAD) scheme from the AES-OTR family. It uses a 32-byte (256-bit) key, a 12-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

AES-OTR (Offset Two-Round) is a nonce-based authenticated-encryption mode that processes pairs of blocks with a two-round Feistel network built from AES, so decryption needs only AES encryption. It reached the third round of CAESAR.

OTR is closely related to OCB in efficiency: it makes about one block-cipher call per block and is parallelisable, but it avoids the block-cipher inverse by using the Feistel structure. Offsets derived from the nonce through doubling in GF(2^128) mask each call, and the checksum of plaintext blocks feeds the tag.

The specification allows associated data to be processed either in parallel or in a serial, CBC-MAC-like fashion; the p and s identifiers in NextSSL denote these options, and c identifies a further implementation build of the same version 3 specification. Instances exist for AES-128 and AES-256 keys.

History

2013–2019
  1. CAESAR competition for authenticated encryption announced

    CAESAR competition
  2. AES-OTR published by Kazuhiko Minematsu

  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

OTR requires unique nonces; repeating one leaks information about plaintext pairs and can enable forgeries. Security is bounded by the birthday bound of the 128-bit block.

Typical uses

High-throughput encryption on AES hardware where only the encryption direction is availableComparison with OCB-style modes

Sizes

FieldBytesMeaning
key32Secret key
nonce12Nonce / 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(32), root.random(12)
ct = root.call("aead_seal", "aes256otrpv3", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "aes256otrpv3", 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 Aes256otrpv3?

Aes256otrpv3 is an AEAD in the AES-OTR family. AES-OTR (Offset Two-Round) is a nonce-based authenticated-encryption mode that processes pairs of blocks with a two-round Feistel network built from AES, so decryption needs only AES encryption.

What are the Aes256otrpv3 sizes?

In NextSSL, Aes256otrpv3 uses: key 32 bytes, nonce 12 bytes, tag 16 bytes.

Who designed Aes256otrpv3 and when?

Aes256otrpv3 belongs to the AES-OTR family, first published in 2014 by Kazuhiko Minematsu. Its origin: CAESAR round 3 candidate.

Is Aes256otrpv3 safe to use?

Aes256otrpv3 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).