Keyak
Parallelisable Motorist-mode AEAD on 12-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 Keyak
Keyak 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. 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
Keyak is an authenticated cipher from the Keccak team that uses the Motorist mode on 12-round Keccak-p permutations, with optional parallel lanes. It reached the third round of CAESAR.
Motorist is a session-oriented duplex mode: one key and nonce set up a session in which several messages can be processed sequentially, each with its own tag. Lake Keyak and River Keyak use Keccak-p[1600,12] and Keccak-p[800,12], and Sea, Ocean and Lunar Keyak run two, four or eight parallel instances for throughput on vector units.
NextSSL includes a reference build of the Keyak family. Keyak is closely related to Ketje and to the later Xoodyak, and shares the Keccak team's design approach of reusing a well-analysed permutation with a mode-level security proof. It was not selected for the CAESAR final portfolio.
History
2013–2019CAESAR competition for authenticated encryption announced
CAESAR competitionKeyak 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
Keyak requires unique nonces per session; reuse leaks plaintext information. Its 12-round permutation keeps a solid margin against known attacks on reduced-round Keccak.
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 'unverified' is reachable from the root API only
key, nonce = root.random(16), root.random(16)
ct = root.call("aead_seal", "keyak", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "keyak", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("keyak", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("keyak", 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, "keyak", &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.
More authenticated encryption
All 392Frequently asked questions
What is Keyak?
Keyak is an AEAD in the Keyak family. Keyak is an authenticated cipher from the Keccak team that uses the Motorist mode on 12-round Keccak-p permutations, with optional parallel lanes.
What are the Keyak sizes?
In NextSSL, Keyak uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.
Who designed Keyak and when?
Keyak belongs to the Keyak 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 Keyak safe to use?
Keyak 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).