Block ciphers

Khazad

A 64-bit involutional SPN by Barreto and Rijmen, a NESSIE submission

unverified Root API only
Unverified tier.

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 Khazad

Khazad is a block cipher. It uses a 16-byte (128-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

Khazad is a 64-bit block cipher with a 128-bit key designed by Paulo Barreto and Vincent Rijmen for the NESSIE project in 2000. Like its sibling Anubis, it uses only involutional components.

Khazad's eight rounds apply a single involutional 8-bit S-box to each byte, followed by an 8x8 involutional MDS matrix over GF(2^8) that provides full diffusion each round, and a round-key XOR. Its key schedule reuses the round function in a Feistel-like arrangement. Its tiny key schedule is a notable feature.

NextSSL includes a Khazad entry wired from source, not yet verified against reference vectors. Like Anubis, Khazad was intended as a demonstration of involutional wide-trail design, which lets encryption and decryption share one circuit. Because the tier is unverified, outputs should be checked against independent reference values before they are relied on for anything beyond experimentation.

History

2000–2003
  1. Khazad published by Paulo S. L. M. Barreto, Vincent Rijmen

  2. European NESSIE project opens its call for primitives

    NESSIE project
  3. NESSIE portfolio published

    NESSIE project

Security notes

No practical attacks on full Khazad are known, but it was not selected by NESSIE, has a 64-bit block, and has had limited analysis. NextSSL's implementation is unverified.

Typical uses

Research on involutional ciphersHistorical NESSIE comparisons

Sizes

FieldBytesMeaning
key16Secret key
block8Block

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

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

Frequently asked questions

What is Khazad?

Khazad is a block cipher in the Khazad family. Khazad is a 64-bit block cipher with a 128-bit key designed by Paulo Barreto and Vincent Rijmen for the NESSIE project in 2000.

What are the Khazad sizes?

In NextSSL, Khazad uses: key 16 bytes, block 8 bytes.

Who designed Khazad and when?

Khazad belongs to the Khazad family, first published in 2000 by Paulo S. L. M. Barreto, Vincent Rijmen. Its origin: NESSIE submission.

Is Khazad safe to use?

Khazad 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).