Square
Daemen, Knudsen and Rijmen's 1997 128-bit substitution-permutation cipher, a precursor to Rijndael
Overview
Square is a 128-bit block cipher with a 128-bit key, proposed in 1997 by Joan Daemen, Lars Knudsen and Vincent Rijmen. It is a substitution-permutation network and a direct predecessor of Rijndael, the cipher standardised as AES. NextSSL carries it as an unverified Crypto++ implementation.
Square was proposed in 1997 by Joan Daemen, Lars Knudsen and Vincent Rijmen. It is a 128-bit block cipher with a 128-bit key, and its round structure of byte substitution, byte permutation and a mixing layer became the basis for Rijndael. Square is also the source of the Square attack, a cryptanalytic technique that targets reduced-round versions of the design.
NextSSL carries the single variant square with a 16-byte key and a 16-byte block, following a Crypto++ implementation. The 128-bit block gives a birthday bound of about 2 to the power of 64 blocks, which is comfortable for most uses.
The unverified tier reflects the archive's review status. Square has been superseded by Rijndael, so its main value now is historical and as a reference for the design lineage behind AES.
History
1997–1997Square published by Joan Daemen, Lars Knudsen, Vincent Rijmen
How it works
- The 128-bit key is expanded into round keys.
- Each round applies a byte-wise substitution layer, a byte permutation and a linear mixing layer over the block.
- Decryption applies the inverse of each layer in reverse round order.
Security notes
Unverified in NextSSL. Square is a reduced-round target of the Square attack, and it is superseded by Rijndael and AES, which should be used instead.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Square square |
unverified | key 16 · block 16 | Square (Daemen, Knudsen, Rijmen, 1997), Crypto++ implem… | root |
Frequently asked questions
What is Square?
Square is a 1997 substitution-permutation block cipher with a 128-bit block and key, and a predecessor of Rijndael. NextSSL carries it as unverified.
Is Square secure and post-quantum?
It is superseded by AES and unverified in NextSSL, so it should not protect new data. Its 128-bit key gives about 64-bit strength against Grover's quantum key search, so AES-256 is the usual post-quantum choice.
What key and block sizes does Square use?
It uses a 16-byte key and a 16-byte block.
Which Square variants does NextSSL include?
NextSSL registers 1 Square variant: square.
Families with similar names
Other block ciphers
All 84Related
A 1993 Daemen block cipher with a 96-bit block and 96-bit key, kept for historical comparison
AESThe Advanced Encryption Standard: the world's default 128-bit block cipher
MARSIBM's 128-bit block AES finalist, with a variable-length key and the 1999 key-setup tweak
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