Tgifm2128v1
Romulus-style modes on a tweakable GIFT-128 cipher; NIST LWC round 1
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 Tgifm2128v1
Tgifm2128v1 is an authenticated encryption (AEAD) scheme from the TGIF 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
TGIF (Thank Goodness It's Friday) is a family of authenticated ciphers that applies Romulus-style nonce-based and misuse-resistant modes to a tweakable variant of GIFT-128. It was submitted to the first round of the NIST Lightweight Cryptography process.
TGIF-N members are nonce-based and TGIF-M members are misuse-resistant SIV-style variants, mirroring the structure of Remus and Romulus but using a GIFT-based tweakable block cipher instead of SKINNY.
NextSSL includes the version 1 instances TGIF-N1, N2, M1 and M2, all with 128-bit keys, nonces and tags. The first round of the NIST process opened in 2019 with 56 candidates, and 32 were selected for the second round later that year.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectTGIF published by Tetsu Iwata, Mustafa Khairallah, Kazuhiko Minematsu, Thomas Peyrin
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
TGIF-N requires unique nonces; TGIF-M tolerates nonce reuse with equality leakage. It was not selected for the second round, and independent analysis is limited; treat it as research-only.
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", "tgifm2128v1", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "tgifm2128v1", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("tgifm2128v1", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("tgifm2128v1", 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, "tgifm2128v1", &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 Tgifm2128v1?
Tgifm2128v1 is an AEAD in the TGIF family. TGIF (Thank Goodness It's Friday) is a family of authenticated ciphers that applies Romulus-style nonce-based and misuse-resistant modes to a tweakable variant of GIFT-128.
What are the Tgifm2128v1 sizes?
In NextSSL, Tgifm2128v1 uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.
Who designed Tgifm2128v1 and when?
Tgifm2128v1 belongs to the TGIF family, first published in 2019 by Tetsu Iwata, Mustafa Khairallah, Kazuhiko Minematsu, Thomas Peyrin. Its origin: NIST LWC round 1.
Is Tgifm2128v1 safe to use?
Tgifm2128v1 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).