Authenticated encryption

Kiasu

AES with a 64-bit tweak (KIASU-BC) in nonce-respecting and misuse-resistant modes

unverified Root API only Copyleft feature
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 Kiasu

Kiasu is an authenticated encryption (AEAD) scheme. It uses a 16-byte (128-bit) key, a 4-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

KIASU is a CAESAR round 1 authenticated-encryption family built on KIASU-BC, which is AES-128 with a 64-bit tweak XORed into every round key. Like Deoxys and Joltik, it offers a nonce-respecting mode and a nonce-misuse-resistant mode.

KIASU-BC reuses the AES-128 key schedule unchanged and adds the tweak to each round key, so existing AES hardware and AES-NI can be reused with minimal change. On top of it, KIASU-not-equal is an OCB-style nonce-respecting mode and KIASU-equal is an SIV-style misuse-resistant mode.

The design was not retained for the second round, where the authors focused on Deoxys. NextSSL includes the generic kiasu build (and its not-equal variant) and kiasueq128 for the misuse-resistant mode.

History

2013–2019
  1. CAESAR competition for authenticated encryption announced

    CAESAR competition
  2. KIASU published by Jérémy Jean, Ivica Nikolić, Thomas Peyrin

  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

KIASU-BC's security margin against related-tweak attacks is smaller than that of a dedicated tweakable cipher, and later analysis found attacks on reduced-round versions. Use Deoxys instead for new designs.

Typical uses

Research on tweakable AES variantsHistorical CAESAR reference

Sizes

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

1

Frequently asked questions

What is Kiasu?

Kiasu is an AEAD in the KIASU family. KIASU is a CAESAR round 1 authenticated-encryption family built on KIASU-BC, which is AES-128 with a 64-bit tweak XORed into every round key.

What are the Kiasu sizes?

In NextSSL, Kiasu uses: key 16 bytes, nonce 4 bytes, tag 16 bytes.

Who designed Kiasu and when?

Kiasu belongs to the KIASU family, first published in 2014 by Jérémy Jean, Ivica Nikolić, Thomas Peyrin. Its origin: CAESAR round 1 candidate.

Is Kiasu safe to use?

Kiasu 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 KIASU variants are there?

NextSSL also registers kiasuneq128 in the KIASU family.