Authenticated encryption

Keyak

Parallelisable Motorist-mode AEAD on 12-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 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–2019
  1. CAESAR competition for authenticated encryption announced

    CAESAR competition
  2. Keyak 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

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

Session-based encrypted channelsHigh-throughput software using SIMD lanes

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", "keyak", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "keyak", 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 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).