Block ciphers

3way

A 1993 Daemen block cipher with a 96-bit block and 96-bit key, kept for historical comparison

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 3way

3way is a block cipher from the 3-Way family. It uses a 12-byte (96-bit) key and a 12-byte (96-bit) block. Its registry entry cites 3-Way (Daemen, 1993), Crypto++ implementation. 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

3-Way is a block cipher designed by Joan Daemen in 1993, with a 96-bit block and a 96-bit key. It is a substitution-permutation design and an early example of the wide-block, short-key style that influenced later Daemen ciphers. NextSSL carries it as an unverified implementation from Crypto++.

3-Way was proposed by Joan Daemen in 1993. It operates on 96-bit blocks with a 96-bit key and is built from alternating linear and nonlinear layers, a substitution-permutation approach that Daemen developed further in later designs such as Square and Shark. The archive lists 3-Way in the same group as those ciphers.

NextSSL carries the single variant 3way with a 12-byte key and a 12-byte block, following the Crypto++ implementation. The archive records the 1993 origin and the reference to the cipher, but no standard body has adopted it.

Because the entry is unverified, it is useful for research on early wide-block designs and for comparing structures across Daemen's work, not for protecting data.

History

1993–1993
  1. 3-Way published by Joan Daemen

How it works

  1. The 96-bit key is expanded into round keys for the cipher's fixed round count.
  2. Each round applies a nonlinear substitution layer followed by linear diffusion across the 96-bit block.
  3. Encryption and decryption use the same structure with inverted layers, so one implementation can serve both directions.

Security notes

Unverified in NextSSL, and the cipher has a 96-bit block and key that fall short of modern guidance. Use AES for any real protection.

Typical uses

Historical comparison of early block cipher designsResearch on substitution-permutation structuresCrypto++ compatibility testing

Sizes

FieldBytesMeaning
key12Secret key
block12Block

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", "3way", 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 3way?

3way is a block cipher in the 3-Way family. 3-Way is a block cipher designed by Joan Daemen in 1993, with a 96-bit block and a 96-bit key.

What are the 3way sizes?

In NextSSL, 3way uses: key 12 bytes, block 12 bytes.

Who designed 3way and when?

3way belongs to the 3-Way family, first published in 1993 by Joan Daemen. Its origin: Proposed by Joan Daemen in 1993.

Which standards define 3way?

3way is referenced by 3-Way (Daemen, 1993), Crypto++ implementation.

Is 3way safe to use?

3way 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).