Loki91
The LOKI89 and LOKI91 Feistel block ciphers, with 64-bit keys and blocks, now legacy
Old but not broken. Kept for interoperability; root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Loki91
Loki91 is one of 2 LOKI 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 legacy tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
LOKI is the name of two Feistel block ciphers, LOKI89 and LOKI91, with 64-bit keys and 64-bit blocks. They were proposed by Brown, Pieprzyk and Seberry in the late 1980s and early 1990s. NextSSL carries both as legacy ciphers, and both are too small for modern use.
LOKI89 and LOKI91 are Feistel block ciphers proposed by Lawrie Brown, Josef Pieprzyk and Jennifer Seberry as alternatives to DES. Both use a 64-bit block and a 64-bit key. LOKI91 was introduced after LOKI89, and it revised the S-box design in response to published cryptanalysis of the earlier cipher.
NextSSL carries loki89 and loki91, each with an 8-byte key and an 8-byte block. The tier is legacy. Both are kept for research and for comparing early Feistel designs with DES and later ciphers.
The 64-bit key and block are the main weaknesses. Key search and the birthday bound on the block size are both within reach of modern hardware, so the ciphers should not protect new data.
History
1990–1998LOKI89 published
Revised as LOKI91
LOKI97 submitted to the AES process
How it works
- The 64-bit key is expanded into subkeys for the Feistel rounds.
- Each round applies a keyed round function, built on S-box lookups, to one half of the block.
- The result is XORed into the other half, and the halves are swapped at the end of each round.
Security notes
Legacy. Both members have published cryptanalysis, and the 64-bit key and block are too small for current use.
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 'legacy' is reachable from the root API only
block = root.call("blockcipher_encrypt", "loki91", None, key, plaintext_block)[0]
nextssl_root_blockcipher_encrypt("loki91", 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, "loki91", &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 LOKI variants
1More block ciphers
All 84Frequently asked questions
What is Loki91?
Loki91 is a block cipher in the LOKI family. LOKI is the name of two Feistel block ciphers, LOKI89 and LOKI91, with 64-bit keys and 64-bit blocks.
What are the Loki91 sizes?
In NextSSL, Loki91 uses: key 8 bytes, block 8 bytes.
Who designed Loki91 and when?
Loki91 belongs to the LOKI family, first published in 1990 by Lawrie Brown, Josef Pieprzyk, Jennifer Seberry.
Is Loki91 safe to use?
Loki91 is in the legacy tier. Old but not broken. Kept for interoperability; root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
What other LOKI variants are there?
NextSSL also registers loki89 in the LOKI family.
Related families
Schneier's 1993 64-bit Feistel cipher with key-dependent S-boxes
DES and Triple DESThe 1977 US standard cipher, broken by exhaustive search, and its three-pass extension
GOST 28147-89The Soviet-era GOST 28147-89 Feistel block cipher, with 256-bit keys and CryptoPro S-box sets
IDEAThe International Data Encryption Algorithm: a Lai–Massey cipher mixing three groups
New DESA legacy 64-bit block cipher with a 15-byte key, an early DES-style alternative