AES-Copa
Online nonce-misuse-resistant AES mode; precursor to COLM
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–2019CAESAR competition for authenticated encryption announced
CAESAR competitionAES-COPA published
57 first-round candidates published
CAESAR competitionSecond round announced
CAESAR competitionThird round announced
CAESAR competitionFinalists announced
CAESAR competitionFinal 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 16 | Nonce / IV |
| tag | 16 | Authentication 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]
nextssl_root_aead_seal("aes-copa", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("aes-copa", NULL, key, nonce, aad, ct, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_aead_in(reg::all(), Policy::Any, "aes-copa", &Params::new())?;
let ct = alg.seal(&key, &nonce, b"header", b"secret")?;
let pt = alg.open(&key, &nonce, b"header", &ct)?;
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 authenticated encryption
All 392Frequently 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).