Authenticated encryption

Ketjeminor

Lightweight MonkeyWrap AEAD on reduced-round Keccak-p; CAESAR round 3

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 Ketjeminor

Ketjeminor is one of 4 Ketje variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 16-byte (128-bit) key, an 81-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

Ketje is a lightweight authenticated cipher from the Keccak team that uses reduced-round Keccak-p permutations in the MonkeyWrap mode. It reached the third round of CAESAR.

MonkeyWrap is a duplex-based mode that initialises the state with a full-strength permutation call and then processes each block with only one round, relying on the nonce being unique for security. Ketje Jr and Ketje Sr use Keccak-p[200] and Keccak-p[400]; Ketje Minor and Ketje Major, added later, use Keccak-p[800] and Keccak-p[1600].

The NextSSL ketje family covers the Ketje builds, including the Sr, Minor and Major instances. Smaller instances suit very constrained hardware, while Minor and Major trade area for higher throughput. The designers intended Ketje for low-power settings where Keyak would be too large, and specify limits on the amount of data processed per key.

History

2013–2019
  1. CAESAR competition for authenticated encryption announced

    CAESAR competition
  2. Ketje published by Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche, Ronny Van Keer

  3. 57 first-round candidates published

    CAESAR competition
  4. Second round announced

    CAESAR competition
  5. Third round announced

    CAESAR competition
  6. Finalists announced

    CAESAR competition
  7. Final portfolio: Ascon, ACORN, AEGIS-128, Deoxys-II, COLM and OCB

    CAESAR competition

Security notes

Because per-block processing uses a single round, nonce reuse is catastrophic and must be prevented. Security also depends on limits on data per key stated by the designers.

Typical uses

Low-power devices with a Keccak coreResearch on minimal-round duplex modes

Sizes

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

Other Ketje variants

3

Frequently asked questions

What is Ketjeminor?

Ketjeminor is an AEAD in the Ketje family. Ketje is a lightweight authenticated cipher from the Keccak team that uses reduced-round Keccak-p permutations in the MonkeyWrap mode.

What are the Ketjeminor sizes?

In NextSSL, Ketjeminor uses: key 16 bytes, nonce 81 bytes, tag 16 bytes.

Who designed Ketjeminor and when?

Ketjeminor belongs to the Ketje family, first published in 2014 by Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche, Ronny Van Keer. Its origin: CAESAR round 3 candidate.

Is Ketjeminor safe to use?

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

What other Ketje variants are there?

NextSSL also registers ketje, ketjemajor, ketjesr in the Ketje family.