Authenticated encryption

Trivia128v2

Trivium-inspired stream cipher with an integrated hash for authentication

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 Trivia128v2

Trivia128v2 is an authenticated encryption (AEAD) scheme from the TriviA family. It uses a 16-byte (128-bit) key, an 8-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

TriviA (Trivia-ck) is an authenticated cipher that combines a Trivium-style stream cipher with an algebraic hash for authentication. NextSSL includes two version 2 builds, trivia0 and trivia128.

The keystream generator is derived from Trivium, extended to a larger state, and authentication uses a field-multiplication-based hash over the ciphertext and associated data. The design targets efficient hardware with a modest software footprint.

The two NextSSL ids differ in their parameterisation within the version 2 specification. Both builds use a 128-bit key and 64-bit nonce. Trivium-derived designs are attractive in hardware because their state update is cheap and highly parallel, but their security depends heavily on the initialisation rounds.

History

2013–2019
  1. CAESAR competition for authenticated encryption announced

    CAESAR competition
  2. TriviA published by Avik Chakraborti, Mridul Nandi

  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

Requires unique nonces. Public analysis is limited; treat as research-only.

Typical uses

Hardware AEAD researchComparison with Trivium-based designs such as TRIAD

Sizes

FieldBytesMeaning
key16Secret key
nonce8Nonce / 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(8)
ct = root.call("aead_seal", "trivia128v2", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "trivia128v2", 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 Trivia128v2?

Trivia128v2 is an AEAD in the TriviA family. TriviA (Trivia-ck) is an authenticated cipher that combines a Trivium-style stream cipher with an algebraic hash for authentication.

What are the Trivia128v2 sizes?

In NextSSL, Trivia128v2 uses: key 16 bytes, nonce 8 bytes, tag 16 bytes.

Who designed Trivia128v2 and when?

Trivia128v2 belongs to the TriviA family, first published in 2014 by Avik Chakraborti, Mridul Nandi. Its origin: TriviA-ck (CAESAR competition).

Is Trivia128v2 safe to use?

Trivia128v2 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).