Twine-80
NEC's lightweight 64-bit block cipher built on a 16-branch generalised Feistel network
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 Twine-80
Twine-80 is one of 2 TWINE variants in the NextSSL registry, a block cipher. It uses a 10-byte (80-bit) key and an 8-byte (64-bit) block. 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
TWINE is a lightweight 64-bit block cipher with 80- or 128-bit keys, designed at NEC and published in 2011. It targets compact hardware and efficient software on small processors.
TWINE uses a Type-2 generalised Feistel structure with 16 nibble-sized branches. In each of its 36 rounds, a single 4-bit S-box is applied to eight branches after XOR with round keys and added into their neighbours, and the branches are then shuffled by a carefully chosen block permutation that improves diffusion compared with a cyclic shift.
NextSSL includes TWINE-80 and TWINE-128 entries wired from source and not yet verified. TWINE's designers chose the permutation by search to improve diffusion, so that the cipher needs fewer rounds than a standard Type-2 Feistel network with cyclic shift. Because the tier is unverified, outputs should be checked against independent reference values before they are relied on for anything beyond experimentation.
History
2011–2011TWINE published by Tomoyasu Suzaki, Kazuhiko Minematsu, Sumio Morioka, Eita Kobayashi
Security notes
No practical attacks on full TWINE are known; published attacks reach reduced rounds. NextSSL's implementation is unverified.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 10 | Secret key |
| block | 8 | Block |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
block = root.call("blockcipher_encrypt", "twine-80", None, key, plaintext_block)[0]
nextssl_root_blockcipher_encrypt("twine-80", NULL, key, block, out); /* exactly one block */
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_blockcipher_in(reg::all(), Policy::Any, "twine-80", &Params::new())?;
let out = alg.encrypt_block(&key, &block)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other TWINE variants
1Similar names
Looking for something else?More block ciphers
All 84Frequently asked questions
What is Twine-80?
Twine-80 is a block cipher in the TWINE family. TWINE is a lightweight 64-bit block cipher with 80- or 128-bit keys, designed at NEC and published in 2011.
What are the Twine-80 sizes?
In NextSSL, Twine-80 uses: key 10 bytes, block 8 bytes.
Who designed Twine-80 and when?
Twine-80 belongs to the TWINE family, first published in 2011 by Tomoyasu Suzaki, Kazuhiko Minematsu, Sumio Morioka, Eita Kobayashi.
Is Twine-80 safe to use?
Twine-80 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 TWINE variants are there?
NextSSL also registers twine-128 in the TWINE family.