Feal8
NTT's 1987 cipher, best known as the proving ground for differential and linear attacks
Practical attacks exist. Present for compatibility and research only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Feal8
Feal8 is one of 3 FEAL variants in the NextSSL registry, a block cipher. It uses an 8-byte (64-bit) key and an 8-byte (64-bit) block. NextSSL lists it in the broken 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 | 8 | Secret key |
| block | 8 | Block |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'broken' is reachable from the root API only
block = root.call("blockcipher_encrypt", "feal8", None, key, plaintext_block)[0]
nextssl_root_blockcipher_encrypt("feal8", 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, "feal8", &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
2Similar names
Looking for something else?More block ciphers
All 84Frequently asked questions
What is Feal8?
Feal8 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 Feal8 sizes?
In NextSSL, Feal8 uses: key 8 bytes, block 8 bytes.
Who designed Feal8 and when?
Feal8 belongs to the FEAL family, first published in 1987 by Akihiro Shimizu, Shoji Miyaguchi.
Is Feal8 safe to use?
Feal8 is in the broken tier. Practical attacks exist. Present for compatibility and research 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, fealnx in the FEAL family.