SHACAL-2
A 256-bit block cipher built from the SHA-256 compression function, from the NESSIE project
Overview
SHACAL-2 is a block cipher with a 256-bit block and a 128 to 512-bit key, built on the SHA-256 compression function. It was proposed by Handschuh and Naccache for the NESSIE project. NextSSL carries it as an unverified Crypto++ implementation.
SHACAL-2 was proposed by Helena Handschuh and David Naccache for the NESSIE European project. It reuses the round function of the SHA-256 hash, so a single set of components supports both hashing and encryption. Its block is 256 bits, the largest among the block ciphers in this group.
NextSSL carries shacal2 with a key from 16 to 64 bytes and a 32-byte block, following a Crypto++ implementation. The large block raises the birthday bound to about 2 to the power of 128 blocks, so volume limits are not an issue for typical use.
The unverified tier reflects the archive's review status. Reduced-round analyses have appeared in the literature, so the full cipher should be treated as research material for new designs.
History
2000–2003SHACAL-2 published by Helena Handschuh, David Naccache
European NESSIE project opens its call for primitives
NESSIE projectNESSIE portfolio published
NESSIE project
How it works
- The key is expanded into round constants and subkey words used by the SHA-256 round function.
- The 256-bit block is split into eight 32-bit words, which pass through the SHA-256 style rounds.
- Decryption runs the inverse round function in reverse order using the same key schedule.
Security notes
Unverified in NextSSL. Reduced-round attacks are documented in the literature, so the full construction is research material rather than a settled choice.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Shacal2 shacal2 |
unverified | key 16–64 · block 32 | SHACAL-2 (Handschuh, Naccache; NESSIE), Crypto++ implem… | root |
Frequently asked questions
What is SHACAL-2?
SHACAL-2 is a 256-bit block cipher built from the SHA-256 compression function, proposed for the NESSIE project and carried by NextSSL as unverified.
Is SHACAL-2 secure and post-quantum?
It is unverified in NextSSL, so AES is the safer choice for new work. Grover's algorithm targets the key rather than the block, and a 16-byte key gives about 64-bit strength against quantum key search.
What key and block sizes does SHACAL-2 use?
It uses a key from 16 to 64 bytes and a 32-byte block.
Which SHACAL-2 variants does NextSSL include?
NextSSL registers 1 SHACAL-2 variant: shacal2.
Families with similar names
Other block ciphers
All 84Related
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
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
SHA-2The NIST Merkle–Damgård hash family behind most of today's TLS, signatures and software