Ketjeminor
Lightweight MonkeyWrap AEAD on reduced-round Keccak-p; CAESAR round 3
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–2019CAESAR competition for authenticated encryption announced
CAESAR competitionKetje published by Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche, Ronny Van Keer
57 first-round candidates published
CAESAR competitionSecond round announced
CAESAR competitionThird round announced
CAESAR competitionFinalists announced
CAESAR competitionFinal 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 81 | 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(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]
nextssl_root_aead_seal("ketjeminor", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("ketjeminor", 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, "ketjeminor", &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.
Other Ketje variants
3More authenticated encryption
All 392Frequently 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.
Related families
Leakage-resilient permutation-based AEAD designed against DPA; NIST LWC finalist
KeyakParallelisable Motorist-mode AEAD on 12-round Keccak-p; CAESAR round 3
XoodyakCyclist-mode AEAD and hash on the Xoodoo permutation; NIST LWC finalist
XoodyakA NIST LWC finalist using the 384-bit Xoodoo permutation in the Cyclist duplex mode