Estate-Twegift
MAC-then-encrypt misuse-resistant AEAD on tweakable AES or GIFT; NIST LWC round 2
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 Estate-Twegift
Estate-Twegift is an authenticated encryption (AEAD) scheme from the ESTATE family. 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
ESTATE is a nonce-misuse-resistant authenticated cipher that combines a tweakable-block-cipher MAC with OFB-style encryption in a SIV-like structure. It was a second-round candidate in the NIST Lightweight Cryptography process.
The mode first computes a tag over the nonce, associated data and message with a CBC-MAC-like chain of tweakable block-cipher calls, then uses the tag as the IV for output-feedback encryption. Tweaks provide domain separation at little cost. Two primitives are specified: TweAES-128, AES-128 with a 4-bit tweak injected at fixed rounds, and TweGIFT-128, a tweakable variant of GIFT-128.
sESTATE is a lighter variant also defined in the submission. NextSSL includes ESTATE-TweGIFT under the estate family, the version 1 builds estatetweaes128 and estatetwegift128, and the version 1 sESTATE-TweAES-128. Both primitives were chosen so that small hardware can reuse an existing AES or GIFT core.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectESTATE published
56 round-1 candidates accepted; 32 advance to round 2 in August
NIST Lightweight Cryptography projectTen finalists announced
NIST Lightweight Cryptography projectAscon selected as the lightweight standard
NIST Lightweight Cryptography projectAscon published in NIST SP 800-232
NIST Lightweight Cryptography project
Security notes
Nonce reuse leaks only message equality; authenticity is maintained. Encryption is two-pass and requires buffering the message.
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", "estate-twegift", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "estate-twegift", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("estate-twegift", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("estate-twegift", 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, "estate-twegift", &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 Estate-Twegift?
Estate-Twegift is an AEAD in the ESTATE family. ESTATE is a nonce-misuse-resistant authenticated cipher that combines a tweakable-block-cipher MAC with OFB-style encryption in a SIV-like structure.
What are the Estate-Twegift sizes?
In NextSSL, Estate-Twegift uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.
Who designed Estate-Twegift and when?
Estate-Twegift belongs to the ESTATE family, first published in 2019 by Avik Chakraborti, Nilanjan Datta, Ashwin Jha, Cuauhtemoc Mancillas-López, Mridul Nandi, Yu Sasaki. Its origin: NIST LWC round 2.
Is Estate-Twegift safe to use?
Estate-Twegift 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
Deterministic authenticated encryption from CMAC-based S2V and AES-CTR (RFC 5297)
GIFT-COFBCombined-feedback mode on the GIFT-128 block cipher; NIST LWC finalist
HyENAHybrid-feedback GIFT-128 mode with a half-block state overhead; NIST LWC round 2
SUNDAE-GIFTLightweight SIV-style misuse-resistant mode on GIFT-128; NIST LWC round 2