3way
A 1993 Daemen block cipher with a 96-bit block and 96-bit key, kept for historical comparison
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–19933-Way published by Joan Daemen
How it works
- The 96-bit key is expanded into round keys for the cipher's fixed round count.
- Each round applies a nonlinear substitution layer followed by linear diffusion across the 96-bit block.
- 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 12 | Secret key |
| block | 12 | Block |
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]
nextssl_root_blockcipher_encrypt("3way", 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, "3way", &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.
More block ciphers
All 84Frequently 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).
Related families
The Advanced Encryption Standard: the world's default 128-bit block cipher
SerpentThe conservative AES finalist with 32 rounds of bit-sliced 4-bit S-boxes
SHARKA 1996 substitution-permutation block cipher by Rijmen, Daemen and colleagues, carried at six rounds
SquareDaemen, Knudsen and Rijmen's 1997 128-bit substitution-permutation cipher, a precursor to Rijndael
TwofishSchneier and colleagues' AES finalist with key-dependent S-boxes