Elephant176v2
Encrypt-then-MAC with LFSR-masked permutations; NIST LWC finalist
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 Elephant176v2
Elephant176v2 is an authenticated encryption (AEAD) scheme from the Elephant family. It uses a 16-byte (128-bit) key, a 12-byte nonce and an 8-byte (64-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
Elephant is a nonce-based authenticated-encryption mode that turns a cryptographic permutation into a masked even-mansour style cipher and combines counter-mode encryption with a Wegman-Carter-like MAC. It was a finalist in the NIST Lightweight Cryptography process.
Each permutation call is masked with values produced by an LFSR applied to the key-derived state, which makes the mode parallelisable and lets it use relatively small, well-studied permutations. Three instances are defined: Dumbo uses Spongent-pi[160], Jumbo uses Spongent-pi[176], and Delirium uses Keccak-f[200].
NextSSL includes the round 2 (v1) instances under the elephant family (elephant-dumbo, elephant-jumbo and elephant-delirium) and the finalist version 2 builds elephant160, elephant176 and elephant200. Version 2, the finalist update, modified the MAC computation, and the designers state that it keeps authenticity under nonce misuse.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectElephant published by Tim Beyne, Yu Long Chen, Christoph Dobraunig, Bart Mennink
56 round-1 candidates accepted; 32 advance to round 2 in August
NIST Lightweight Cryptography projectTen finalists announced
NIST Lightweight Cryptography projectAscon selected as the lightweight standard
NIST Lightweight Cryptography projectAscon published in NIST SP 800-232
NIST Lightweight Cryptography project
How it works
- Expand the key with the permutation to produce a masking state.
- Derive block masks by repeatedly applying an LFSR to the masking state.
- Encrypt in counter mode by XORing the plaintext with permutation outputs on masked nonce and counter inputs.
- Authenticate the nonce, associated data and ciphertext with a masked, parallel MAC and truncate the result to the tag.
Security notes
Confidentiality requires unique nonces. Dumbo and Jumbo use 64-bit tags, which limits forgery resistance per attempt. Prefer the v2 builds, which reflect the final specification.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 12 | Nonce / IV |
| tag | 8 | 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(12)
ct = root.call("aead_seal", "elephant176v2", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "elephant176v2", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("elephant176v2", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("elephant176v2", 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, "elephant176v2", &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 Elephant176v2?
Elephant176v2 is an AEAD in the Elephant family. Elephant is a nonce-based authenticated-encryption mode that turns a cryptographic permutation into a masked even-mansour style cipher and combines counter-mode encryption with a Wegman-Carter-like MAC.
What are the Elephant176v2 sizes?
In NextSSL, Elephant176v2 uses: key 16 bytes, nonce 12 bytes, tag 8 bytes.
Who designed Elephant176v2 and when?
Elephant176v2 belongs to the Elephant family, first published in 2019 by Tim Beyne, Yu Long Chen, Christoph Dobraunig, Bart Mennink. Its origin: NIST LWC finalist.
Is Elephant176v2 safe to use?
Elephant176v2 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).
Related families
Lightweight permutation-based AEAD; NIST lightweight standard (SP 800-232)
ISAPLeakage-resilient permutation-based AEAD designed against DPA; NIST LWC finalist
PHOTON-BeetleBeetle sponge mode on the PHOTON-256 permutation; NIST LWC finalist
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD
PHOTON-BeetleA NIST LWC finalist hash and AEAD built on the PHOTON-256 permutation
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD