Acorn
Bit-oriented LFSR stream cipher AEAD from the CAESAR lightweight portfolio
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 Acorn
Acorn 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
ACORN is a lightweight authenticated cipher built from six concatenated linear feedback shift registers with a nonlinear feedback function. ACORN-128 was included in the CAESAR final portfolio for lightweight applications alongside Ascon.
The 293-bit state of ACORN is updated one bit at a time, which makes hardware implementations very small and allows parallel processing of up to 32 steps per clock. The key and IV are loaded over a long initialisation phase; associated data and plaintext bits are injected into the state as it is clocked, and the keystream bit is a nonlinear function of selected state bits.
Because authentication and encryption share a single state, ACORN behaves like a duplexed stream cipher. Its software performance is moderate, but its hardware footprint is among the smallest of the CAESAR finalists. NextSSL implements ACORN-128.
History
2013–2019CAESAR competition for authenticated encryption announced
CAESAR competitionACORN published by Hongjun Wu
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
ACORN is not nonce-misuse resistant: repeating a nonce enables state recovery and forgery. Published analyses have found no practical attack on the full cipher with unique nonces, but its margin has been studied less than that of Ascon.
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", "acorn", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "acorn", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("acorn", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("acorn", 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, "acorn", &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 Acorn?
Acorn is an AEAD in the ACORN family. ACORN is a lightweight authenticated cipher built from six concatenated linear feedback shift registers with a nonlinear feedback function.
What are the Acorn sizes?
In NextSSL, Acorn uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.
Who designed Acorn and when?
Acorn belongs to the ACORN family, first published in 2014 by Hongjun Wu. Its origin: CAESAR final portfolio (lightweight).
Is Acorn safe to use?
Acorn 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).
Related families
Lightweight permutation-based AEAD; NIST lightweight standard (SP 800-232)
Grain-128AEADLFSR/NLFSR stream cipher with an integrated MAC; NIST LWC finalist
MORUSFast AND-rotate-XOR authenticated stream cipher; CAESAR round 3 finalist
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD