Authenticated encryption

Giftcofb128v1

Combined-feedback mode on the GIFT-128 block cipher; NIST LWC finalist

unverified Root API only
Unverified tier.

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 Giftcofb128v1

Giftcofb128v1 is an authenticated encryption (AEAD) scheme from the GIFT-COFB 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

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–2025
  1. NIST calls for lightweight AEAD and hashing designs

    NIST Lightweight Cryptography project
  2. GIFT-COFB published

  3. 56 round-1 candidates accepted; 32 advance to round 2 in August

    NIST Lightweight Cryptography project
  4. Ten finalists announced

    NIST Lightweight Cryptography project
  5. Ascon selected as the lightweight standard

    NIST Lightweight Cryptography project
  6. Ascon 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

Low-area hardware where state size dominatesConstrained microcontrollersBluetooth-class and sensor devices

Sizes

FieldBytesMeaning
key16Secret key
nonce16Nonce / IV
tag16Authentication 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", "giftcofb128v1", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "giftcofb128v1", None, key, nonce, b"header", ct)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is Giftcofb128v1?

Giftcofb128v1 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 Giftcofb128v1 sizes?

In NextSSL, Giftcofb128v1 uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.

Who designed Giftcofb128v1 and when?

Giftcofb128v1 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.

Is Giftcofb128v1 safe to use?

Giftcofb128v1 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).