CAST-128 and CAST-256
Carlisle Adams and Stafford Tavares's Feistel ciphers, once default in PGP
Overview
CAST-128 (also called CAST5) and CAST-256 (CAST6) are block ciphers designed using the CAST methodology of Carlisle Adams and Stafford Tavares. CAST5 was the default symmetric cipher in some versions of PGP and GnuPG.
CAST-128 is a 12- or 16-round Feistel network on a 64-bit block with keys from 40 to 128 bits. Its round functions mix modular addition, subtraction and XOR with key-dependent rotations and four large 8x32-bit S-boxes derived from bent functions. CAST-256 extends the design to a 128-bit block with keys up to 256 bits using a generalised Feistel structure of quad-rounds, and was an AES first-round candidate.
CAST-128 is specified in RFC 2144 and CAST-256 in RFC 2612. NextSSL includes both. CAST5 was used in OpenPGP, early SSH and some VPN products, and is still supported for decrypting old messages. CAST-256 was not selected as an AES finalist. Both were offered royalty-free by Entrust. It remains interoperable.
History
1996–1999CAST-128 published by Carlisle Adams and Stafford Tavares
Specified in RFC 2144
CAST-256 specified in RFC 2612
Security notes
No practical attacks on full CAST-128 or CAST-256 are known, but CAST-128's 64-bit block is vulnerable to birthday-bound attacks with large data volumes. Both are legacy choices.
Typical uses
Variants in NextSSL
2Frequently asked questions
Which CAST-128 and CAST-256 variants does NextSSL include?
NextSSL registers 2 CAST-128 and CAST-256 variants: cast5, cast6.