Yaes
AES-based authenticated-encryption mode from CAESAR round 1
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 Yaes
Yaes 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
YAES is an AES-based authenticated-encryption mode submitted to the first round of CAESAR. NextSSL includes a generic build and the version 2 YAES-128 implementation.
YAES was designed to use AES-128 as its only primitive and to be efficient on platforms with AES instructions. The submission positioned it as a simple mode with a small amount of state beyond the AES computation itself.
It did not advance to round 2 of CAESAR, and independent analysis of it is limited. NextSSL keeps both builds as archival references. CAESAR, the Competition for Authenticated Encryption: Security, Applicability, and Robustness, received 57 first-round submissions in 2014 and announced its final portfolio in 2019.
History
2013–2019CAESAR competition for authenticated encryption announced
CAESAR competitionYAES published by Antoon Bosselaers, Frederik Vercauteren
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
Not vetted beyond the first round of CAESAR; treat it as research-only.
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", "yaes", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "yaes", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("yaes", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("yaes", 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, "yaes", &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 Yaes?
Yaes is an AEAD in the YAES family. YAES is an AES-based authenticated-encryption mode submitted to the first round of CAESAR.
What are the Yaes sizes?
In NextSSL, Yaes uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.
Who designed Yaes and when?
Yaes belongs to the YAES family, first published in 2014 by Antoon Bosselaers, Frederik Vercauteren. Its origin: CAESAR competition.
Is Yaes safe to use?
Yaes 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).