GIFT-COFB
Combined-feedback mode on the GIFT-128 block cipher; NIST LWC finalist
Experimental or unclassified. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About GIFT-COFB
GIFT-COFB is an authenticated encryption (AEAD) scheme. It uses a 16-byte (128-bit) key, a 16-byte nonce and a 16-byte (128-bit) authentication tag. Its registry entry cites GIFT-COFB (NIST LWC finalist). NextSSL lists it in the research tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
GIFT-COFB is a lightweight authenticated cipher that uses the COFB (combined feedback) mode with the GIFT-128 block cipher. It was a finalist in the NIST Lightweight Cryptography process and is notable for its very small state.
COFB makes one block-cipher call per 128-bit block and needs only a 64-bit mask in addition to the block state, so the total state is about 1.5 blocks. Each step combines the previous block-cipher output, a linear feedback function and the message block to produce both ciphertext and the next input, so encryption and authentication run in a single pass.
GIFT-128 is a lightweight substitution-permutation cipher designed as an improvement on PRESENT, with a bit-permutation linear layer suited to bitsliced software and small hardware. NextSSL includes a generic GIFT-COFB build and the version 1 giftcofb128 implementation.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectGIFT-COFB 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; security is bounded near the birthday bound in the 128-bit block, roughly 2^64 blocks, with tighter data limits stated by the designers.
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 'research' is reachable from the root API only
key, nonce = root.random(16), root.random(16)
ct = root.call("aead_seal", "gift-cofb", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "gift-cofb", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("gift-cofb", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("gift-cofb", 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, "gift-cofb", &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 GIFT-COFB?
GIFT-COFB is an AEAD in the GIFT-COFB family. GIFT-COFB is a lightweight authenticated cipher that uses the COFB (combined feedback) mode with the GIFT-128 block cipher.
What are the GIFT-COFB sizes?
In NextSSL, GIFT-COFB uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.
Who designed GIFT-COFB and when?
GIFT-COFB belongs to the GIFT-COFB family, first published in 2019 by Subhadeep Banik, Avik Chakraborti, Tetsu Iwata, Kazuhiko Minematsu, Mridul Nandi, Thomas Peyrin, Yu Sasaki, Siang Meng Sim, Yosuke Todo. Its origin: NIST LWC finalist.
Which standards define GIFT-COFB?
GIFT-COFB is referenced by GIFT-COFB (NIST LWC finalist).
Is GIFT-COFB safe to use?
GIFT-COFB is in the research tier. Experimental or unclassified. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
Related families
MAC-then-encrypt misuse-resistant AEAD on tweakable AES or GIFT; NIST LWC round 2
HyENAHybrid-feedback GIFT-128 mode with a half-block state overhead; NIST LWC round 2
RomulusSKINNY-based tweakable block cipher AEAD family; NIST LWC finalist
SUNDAE-GIFTLightweight SIV-style misuse-resistant mode on GIFT-128; NIST LWC round 2
RomulusA NIST LWC finalist family built on the SKINNY tweakable block cipher