Kiasueq128v1
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 Kiasueq128v1
Kiasueq128v1 is an authenticated encryption (AEAD) scheme from the KIASU family. 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", "kiasueq128v1", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "kiasueq128v1", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("kiasueq128v1", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("kiasueq128v1", 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, "kiasueq128v1", &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.
Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is Kiasueq128v1?
Kiasueq128v1 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 Kiasueq128v1 sizes?
In NextSSL, Kiasueq128v1 uses: key 16 bytes, nonce 4 bytes, tag 16 bytes.
Who designed Kiasueq128v1 and when?
Kiasueq128v1 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 Kiasueq128v1 safe to use?
Kiasueq128v1 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).