Block ciphers

Loki89

The LOKI89 and LOKI91 Feistel block ciphers, with 64-bit keys and blocks, now legacy

legacy Root API only
Legacy tier.

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 Loki89

Loki89 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–1998
  1. LOKI89 published

  2. Revised as LOKI91

  3. LOKI97 submitted to the AES process

How it works

  1. The 64-bit key is expanded into subkeys for the Feistel rounds.
  2. Each round applies a keyed round function, built on S-box lookups, to one half of the block.
  3. 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

Historical comparison with DESResearch into early Feistel cipher designTeaching examples of block cipher weaknesses

Sizes

FieldBytesMeaning
key8Secret key
block8Block

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", "loki89", None, key, plaintext_block)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other LOKI variants

1

Frequently asked questions

What is Loki89?

Loki89 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 Loki89 sizes?

In NextSSL, Loki89 uses: key 8 bytes, block 8 bytes.

Who designed Loki89 and when?

Loki89 belongs to the LOKI family, first published in 1990 by Lawrie Brown, Josef Pieprzyk, Jennifer Seberry.

Is Loki89 safe to use?

Loki89 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 loki91 in the LOKI family.