Twegift64lotusaeadv1
Nonce-derived-key TweGIFT-64 modes with beyond-birthday security; 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 Twegift64lotusaeadv1
Twegift64lotusaeadv1 is an authenticated encryption (AEAD) scheme from the LOTUS-AEAD and LOCUS-AEAD family. It uses a 16-byte (128-bit) key, a 16-byte nonce and an 8-byte (64-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
LOTUS-AEAD and LOCUS-AEAD are a pair of authenticated ciphers built on TweGIFT-64, a tweakable 64-bit block cipher, that derive a fresh key from the master key and nonce for each message. They were second-round candidates in the NIST Lightweight Cryptography process as a single submission.
Deriving a nonce-based key lets the modes use a 64-bit block cipher while achieving security well beyond the 64-bit birthday bound. LOCUS-AEAD is a parallel, OCB-like mode, while LOTUS-AEAD uses a two-branch Feistel-like structure that avoids the block-cipher inverse in decryption.
NextSSL includes generic builds under the lotus and locus families and the version 1 builds twegift64lotusaead and twegift64locusaead, all with 128-bit keys and nonces and 64-bit tags. The 64-bit block keeps the hardware small, while the nonce-based keys keep the data limit high.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectLOTUS-AEAD and LOCUS-AEAD 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
Requires unique nonces. The 64-bit tags limit forgery resistance per attempt.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 16 | Nonce / IV |
| tag | 8 | 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", "twegift64lotusaeadv1", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "twegift64lotusaeadv1", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("twegift64lotusaeadv1", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("twegift64lotusaeadv1", 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, "twegift64lotusaeadv1", &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 Twegift64lotusaeadv1?
Twegift64lotusaeadv1 is an AEAD in the LOTUS-AEAD and LOCUS-AEAD family. LOTUS-AEAD and LOCUS-AEAD are a pair of authenticated ciphers built on TweGIFT-64, a tweakable 64-bit block cipher, that derive a fresh key from the master key and nonce for each message.
What are the Twegift64lotusaeadv1 sizes?
In NextSSL, Twegift64lotusaeadv1 uses: key 16 bytes, nonce 16 bytes, tag 8 bytes.
Who designed Twegift64lotusaeadv1 and when?
Twegift64lotusaeadv1 belongs to the LOTUS-AEAD and LOCUS-AEAD 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 Twegift64lotusaeadv1 safe to use?
Twegift64lotusaeadv1 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).