Sundaegift96v1
Lightweight SIV-style misuse-resistant mode on GIFT-128; 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 Sundaegift96v1
Sundaegift96v1 is an authenticated encryption (AEAD) scheme from the SUNDAE-GIFT family. It uses a 16-byte (128-bit) key, a 12-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
SUNDAE-GIFT is a lightweight authenticated cipher using the SUNDAE mode with GIFT-128. SUNDAE is a two-pass, SIV-style construction that offers deterministic authenticated encryption with a very small state.
SUNDAE computes a CBC-MAC-like tag over the nonce, associated data and message using only the block-cipher state and simple doubling, then uses the tag as the IV for OFB-style encryption. It needs no extra masks, so hardware implementations are very small.
The submission defines instances by nonce length. NextSSL includes SUNDAE-GIFT-0 (no nonce, deterministic), -64, -96 and -128 under both the sundae family and the version 1 sundaegift builds. The two-pass structure means encryption cannot begin until the whole message has been read.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectSUNDAE-GIFT published by Subhadeep Banik et al.
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; with no nonce it is deterministic. Security is limited to the birthday bound of the 128-bit block.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 12 | 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(12)
ct = root.call("aead_seal", "sundaegift96v1", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "sundaegift96v1", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("sundaegift96v1", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("sundaegift96v1", 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, "sundaegift96v1", &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 Sundaegift96v1?
Sundaegift96v1 is an AEAD in the SUNDAE-GIFT family. SUNDAE-GIFT is a lightweight authenticated cipher using the SUNDAE mode with GIFT-128.
What are the Sundaegift96v1 sizes?
In NextSSL, Sundaegift96v1 uses: key 16 bytes, nonce 12 bytes, tag 16 bytes.
Who designed Sundaegift96v1 and when?
Sundaegift96v1 belongs to the SUNDAE-GIFT family, first published in 2019 by Subhadeep Banik et al.. Its origin: NIST LWC round 2.
Is Sundaegift96v1 safe to use?
Sundaegift96v1 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).