Authenticated encryption

AES-Copa

Online nonce-misuse-resistant AES mode; precursor to COLM

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 AES-Copa

AES-Copa is an authenticated encryption (AEAD) scheme. 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

AES-COPA is a parallelisable online authenticated-encryption mode based on AES that aims to stay secure, up to a common-prefix leak, even if nonces repeat. It was a CAESAR round 2 candidate and was later merged with ELmD to form COLM.

COPA processes each block with an encrypt-mix-encrypt structure: plaintext blocks are masked and encrypted, chained through a linear mixing layer, and encrypted again. This yields an online cipher in which each ciphertext block depends on all preceding plaintext, so nonce reuse only reveals the length of a common prefix rather than full plaintext XORs.

The design was submitted to CAESAR as AES-COPA and advanced to the second round. For the third round the designers combined it with ELmD into COLM, which entered the CAESAR final portfolio in the defence-in-depth category. NextSSL keeps AES-COPA as a historical reference.

History

2013–2019
  1. CAESAR competition for authenticated encryption announced

    CAESAR competition
  2. AES-COPA 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

Its misuse resistance is limited to online security, and security is only claimed up to the birthday bound in the block size; forgery attacks near that bound were published during the competition. It was superseded by COLM.

Typical uses

Research into online misuse-resistant modesComparison with COLM and other CAESAR candidates

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", "aes-copa", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "aes-copa", 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 AES-Copa?

AES-Copa is an AEAD in the AES-COPA family. AES-COPA is a parallelisable online authenticated-encryption mode based on AES that aims to stay secure, up to a common-prefix leak, even if nonces repeat.

What are the AES-Copa sizes?

In NextSSL, AES-Copa uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.

Who designed AES-Copa and when?

AES-Copa belongs to the AES-COPA family, first published in 2014 by Elena Andreeva, Andrey Bogdanov, Atul Luykx, Bart Mennink, Elmar Tischhauser, Kan Yasuda. Its origin: CAESAR round 2 candidate.

Is AES-Copa safe to use?

AES-Copa 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).