Kiasuneq128
AES with a 64-bit tweak (KIASU-BC) in nonce-respecting and misuse-resistant modes
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 Kiasuneq128
Kiasuneq128 is one of 2 KIASU variants in the NextSSL registry, 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–2019CAESAR competition for authenticated encryption announced
CAESAR competitionKIASU published by Jérémy Jean, Ivica Nikolić, Thomas Peyrin
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
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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 4 | 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(4)
ct = root.call("aead_seal", "kiasuneq128", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "kiasuneq128", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("kiasuneq128", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("kiasuneq128", 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, "kiasuneq128", &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 KIASU variants
1Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is Kiasuneq128?
Kiasuneq128 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 Kiasuneq128 sizes?
In NextSSL, Kiasuneq128 uses: key 16 bytes, nonce 4 bytes, tag 16 bytes.
Who designed Kiasuneq128 and when?
Kiasuneq128 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 Kiasuneq128 safe to use?
Kiasuneq128 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 kiasu in the KIASU family.