Authenticated encryption

Ketje

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 Ketje

Ketje is an authenticated encryption (AEAD) scheme. It uses a 12-byte (96-bit) key, a 10-byte nonce and a 12-byte (96-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
key12Secret key
nonce10Nonce / IV
tag12Authentication 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(12), root.random(10)
ct = root.call("aead_seal", "ketje", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "ketje", 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 Ketje?

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

In NextSSL, Ketje uses: key 12 bytes, nonce 10 bytes, tag 12 bytes.

Who designed Ketje and when?

Ketje 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 Ketje safe to use?

Ketje 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 ketjemajor, ketjeminor, ketjesr in the Ketje family.