Scream12
LS-design tweakable block ciphers in a TAE mode, aimed at side-channel protection
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 Scream12
Scream12 is one of 2 SCREAM and iSCREAM variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 16-byte (128-bit) key, an 11-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
SCREAM and iSCREAM are authenticated ciphers built on tweakable block ciphers from the LS-design family, intended to be cheap to mask against side-channel attacks. SCREAM reached the second round of CAESAR; iSCREAM, an involutive variant, did not.
LS-designs combine bitsliced S-boxes with table-based linear layers (L-boxes), making masked software implementations efficient. SCREAM uses the Scream tweakable block cipher in the TAE (Tweakable Authenticated Encryption) mode, an OCB-like nonce-based mode with one call per block.
iSCREAM uses an involutive cipher so that encryption and decryption share one implementation. Leander, Minaud and Rønjom showed invariant-subspace attacks against iSCREAM that lead to practical weak-key recoveries, and SCREAM was tweaked in later versions. NextSSL includes SCREAM builds (scream, scream12 and scream10 version 3, where the number indicates step count) and iSCREAM builds (iscream, iscream14 and iscream12 version 2).
History
2013–2019CAESAR competition for authenticated encryption announced
CAESAR competitionSCREAM and iSCREAM 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
iSCREAM has known invariant-subspace weak-key attacks and should not be used. SCREAM requires unique nonces, as in OCB-like modes.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 11 | 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(11)
ct = root.call("aead_seal", "scream12", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "scream12", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("scream12", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("scream12", 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, "scream12", &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.
Other SCREAM and iSCREAM variants
1Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is Scream12?
Scream12 is an AEAD in the SCREAM and iSCREAM family. SCREAM and iSCREAM are authenticated ciphers built on tweakable block ciphers from the LS-design family, intended to be cheap to mask against side-channel attacks.
What are the Scream12 sizes?
In NextSSL, Scream12 uses: key 16 bytes, nonce 11 bytes, tag 16 bytes.
Who designed Scream12 and when?
Scream12 belongs to the SCREAM and iSCREAM family, first published in 2014 by Vincent Grosso, Gaëtan Leurent, François-Xavier Standaert, Kerem Varıcı, François Durvaux, Lubos Gaspar, Stéphanie Kerckhof. Its origin: CAESAR round 2 candidate (SCREAM).
Is Scream12 safe to use?
Scream12 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).
What other SCREAM and iSCREAM variants are there?
NextSSL also registers scream in the SCREAM and iSCREAM family.