Fealnx
NTT's 1987 cipher, best known as the proving ground for differential and linear attacks
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 Fealnx
Fealnx is one of 3 FEAL variants in the NextSSL registry, a block cipher. It uses a 16-byte (128-bit) key and an 8-byte (64-bit) block. It takes the parameter rounds (default 32). 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
FEAL (Fast data Encipherment ALgorithm) is a 64-bit block cipher designed by Akihiro Shimizu and Shoji Miyaguchi of NTT in 1987 as a faster alternative to DES. It is completely broken and is now studied mainly for its role in the history of cryptanalysis.
FEAL is a Feistel network with a round function built from byte-wise additions modulo 256 and two-bit rotations, avoiding S-boxes for speed on the hardware of the time. The original FEAL-4 had four rounds; FEAL-8, FEAL-N and FEAL-NX increased rounds and key size after successive attacks. Its history is instructive.
Differential cryptanalysis was first demonstrated against FEAL, and Mitsuru Matsui's linear cryptanalysis was also developed and tested on it. NextSSL includes a FEAL entry wired from source; which round variant it implements has not been verified. FEAL is a standard teaching example. Its successive versions show how cryptanalysis drove design changes in the late 1980s and 1990s.
History
1987–1987FEAL published by Akihiro Shimizu, Shoji Miyaguchi
Security notes
FEAL is broken: FEAL-4 can be broken with a handful of chosen plaintexts, and attacks extend to many more rounds. It must never be used to protect data.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| block | 8 | Block |
Parameters
| Name | Type | Range | Default | Required |
|---|---|---|---|---|
| rounds | u32 | 4 – 64 | 32 | no |
Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.
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", "fealnx", None, key, plaintext_block)[0]
nextssl_root_blockcipher_encrypt("fealnx", 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, "fealnx", &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 FEAL variants
2More block ciphers
All 84Frequently asked questions
What is Fealnx?
Fealnx is a block cipher in the FEAL family. FEAL (Fast data Encipherment ALgorithm) is a 64-bit block cipher designed by Akihiro Shimizu and Shoji Miyaguchi of NTT in 1987 as a faster alternative to DES.
What are the Fealnx sizes?
In NextSSL, Fealnx uses: key 16 bytes, block 8 bytes.
Who designed Fealnx and when?
Fealnx belongs to the FEAL family, first published in 1987 by Akihiro Shimizu, Shoji Miyaguchi.
Is Fealnx safe to use?
Fealnx 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 FEAL variants are there?
NextSSL also registers feal, feal8 in the FEAL family.